/**
 * Tour Guide Styles
 * Professional styling for Shepherd.js tour
 */

/* Ecommerce Categories - Mobile Carousel Layout (3 rows, 4 columns, horizontal scroll) - Match Image Exactly */
@media (max-width: 768px) {
    .modal-icon-wrapper {
    display: none;
}
    .tp-shop-top.mb-45 {
    display: none;
}
            .tp-product-category-thumb a {
 
            border-radius: 8px !important;
        }
    .logo {
    margin: 0 auto !important;
}
    .tp-product-details-reward-points {
 
    margin-top: 0 !important;
}
    .tp-product-details-description.mb-20 {
    margin-bottom: 0 !important;
}
        .tp-product-details-wrapper {
        margin-left: 0;
        margin-top: 0 !important;
    }
        .tp-product-details-bottom {
        padding-bottom: 0 !important;
    }
    .tp-product-details-thumb-wrapper {
 
    top: 0 !important;
}
    section.tp-subscribe-area.pt-70.pb-65.theme-bg.p-relative.z-index-1
 
 {
    display: none;
}
    .p-relative.z-index-11.tp-header-top-border.tp-header-top-2

 {
    display: none;
}
    section.tp-product-category.pt-60.pb-15.mobilebadding

 {
    margin-top: 30px;
}
    .tp-product-category {
        padding: 0 !important;
        background: none !important;
   
    }
    
    /* Disable Swiper completely on mobile */
    .tp-product-categories-slider.swiper-container {
        overflow: visible !important;
        width: 100% !important;
    }
    
    .tp-product-categories-slider-wrapper {
        position: relative;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding-bottom: 10px;
        width: 100%;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .tp-product-categories-slider-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .tp-product-categories-slider .swiper-wrapper {
        display: grid !important;
        grid-template-rows: repeat(3, auto) !important;
        grid-auto-columns: calc(24vw - 10.5px) !important;
        grid-auto-flow: column !important;
        gap: 4px 0px !important;
        transform: none !important;
        width: auto !important;
        min-width: 100% !important;
        height: auto !important;
        padding: 0 !important;
    }
    
    .tp-product-categories-slider .swiper-slide {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    /* Items flow: Column 1 (items 1,2,3), Column 2 (items 4,5,6), etc. */
    /* This creates horizontal scrolling carousel with 3 rows */
    
    .tp-product-category-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 0;
        width: 100%;
    }
    
    .tp-product-category-thumb {
        width: 100%;
        max-width: 65px;
        margin: 0 auto 6px;
        flex-shrink: 0;
    }
    
    .tp-product-category-thumb a {
        display: block;
        width: 100%;
        height: 55px;
        position: relative;
        border-radius: 50%;
        overflow: hidden;
        background: #fff;
    }
    
    .tp-product-category-thumb img {
        position: absolute;
        top: 0;
        left: 0;
        /* width: 100%; */
        /* height: 100%; */
        object-fit: cover;
        border-radius: 50%;
    }
    
    /* Mobile-specific styles for product category thumbnails */
    @media (max-width: 768px) {
        .tp-product-category-thumb img {
            position: absolute;
            top: 0;
            left: 0;
            /* width: 100%; */
            /* height: 100%; */
            object-fit: cover;
        }
        
        .tp-product-category-thumb a {
            display: block;
            width: 100%;
            height: 60px;
            position: relative;
            border-radius: 0;
            overflow: hidden;
            background: #fff;
        }
    }
    
    .tp-product-category-content {
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .tp-product-category-title {
        font-size: 11px;
        font-weight: 400;
        margin: 0;
        line-height: 1.3;
        color: #000;
    }
    
    .tp-product-category-title a {
        color: #000;
        text-decoration: none;
        display: block;
        word-break: break-word;
        font-size: 14px;
    }
    
    /* Hide navigation arrows on mobile */
    .tp-product-categories-nav {
        display: none !important;
    }
    
    /* Brands Section - Mobile Responsive Design */
    .tp-brand-area {
        padding: 20px 0 30px 0 !important;
        background: #F3F5F7 !important;
    }
    
    .tp-brand-slider-wrapper {
        position: relative;
        padding: 0 45px;
        margin: 0 auto;
    }
    
    .tp-brand-slider-carousel {
        overflow: visible !important;
    }
    
    .tp-brand-slider-carousel .swiper-wrapper {
        align-items: stretch;
    }
    
    .tp-brand-slider-carousel .swiper-slide {
        display: flex;
        align-items: stretch;
        justify-content: center;
        height: auto;
        padding: 0;
        /* Let Swiper control the width - don't force it with CSS */
        flex-shrink: 0;
    }
    
    /* Ensure Swiper container respects the 4 slides per view on mobile */
    .tp-brand-slider-carousel.swiper-container {
        overflow: hidden;
    }
    
    .tp-brand-item {
        width: 100%;
        min-height: 110px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 12px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }
    
    /* Mobile-specific styles for brand slider */
    @media (max-width: 768px) {
        .tp-brand-slider-carousel .swiper-slide {
            display: flex;
            align-items: stretch;
            justify-content: center;
            height: auto;
            padding: 0;
            flex-shrink: 0;
            width: 100px !important;
        }
        
        .tp-brand-item {
            min-height: 80px;
        }
        
        .tp-brand-area .mb-40 {
            margin-bottom: 0;
        }
    }
    
    /* Header bottom padding for mobile and tablet */
    @media only screen and (min-width: 768px) and (max-width: 991px), only screen and (min-width: 576px) and (max-width: 767px), (max-width: 575px) {
        .tp-header-bottom-3 {
            /* padding-top: 12px; */
            /* padding-bottom: 12px; */
        }
    }
    
    /* Header top section - Mobile responsive styles */
    @media (max-width: 768px) {
        .p-relative.z-index-11.tp-header-top-border.tp-header-top-2,
        .tp-header-top-2.tp-header-top-border {
            padding: 8px 0 !important;
            font-size: 12px;
        }
        
        .tp-header-top-2 .container {
            padding-left: 15px;
            padding-right: 15px;
        }
        
        .tp-header-top-2 .d-flex {
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .tp-header-top-2 .tp-header-top-right {
            flex-wrap: wrap;
            gap: 8px;
            justify-content: flex-end !important;
        }
        
        .tp-header-top-2 .tp-header-top-menu {
            display: none !important; /* Hide desktop menu items on mobile */
        }
        
        .tp-header-top-2 .tp-header-top-menu-item {
            padding: 4px 8px !important;
            font-size: 11px !important;
            margin: 0 !important;
        }
        
        .tp-header-top-2 .tp-header-top-menu-item:not(:last-child)::after {
            display: none; /* Hide separators on mobile */
        }
        
        .tp-header-top-2 .position-relative {
            width: 100%;
            order: 2; /* Move announcements to bottom */
        }
        
        .tp-header-top-2 .tp-header-top-right {
            width: 100%;
            order: 1; /* Move menu items to top */
            justify-content: space-between !important;
        }
        
        /* Make currency and language switchers more compact */
        .tp-header-top-2 .tp-header-currency-toggle,
        .tp-header-top-2 .tp-header-language-toggle {
            padding: 4px 8px !important;
            font-size: 11px !important;
        }
        
        /* Reduce border on mobile */
        .tp-header-top-border {
            border-bottom-width: 0.5px !important;
        }
    }
    
    .tp-brand-item:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
        transform: translateY(-3px);
    }
    
    .tp-brand-item a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 0;
    }
    
    .tp-brand-item img {
        width: 78px !important;
        height: 48px !important;
        object-fit: contain;
        margin: 0 auto;
    }
    
    .tp-brand-slider-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: calc(100% + 90px);
        left: -45px;
        display: flex;
        justify-content: space-between;
        pointer-events: none;
        z-index: 10;
    }
    
    .tp-brand-slider-nav button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid #e0e0e0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        pointer-events: all;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
        transition: all 0.3s ease;
        flex-shrink: 0;
    }
    
    .tp-brand-slider-nav button:hover {
        background: #f8f8f8;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
        transform: scale(1.08);
    }
    
    .tp-brand-slider-nav button:active {
        transform: scale(0.95);
    }
    
    .tp-brand-slider-nav button svg {
        width: 20px;
        height: 20px;
        color: #333;
    }
    
    /* Section title on mobile */
    .tp-brand-area .section-title-wrapper {
        margin-bottom: 25px !important;
        padding: 0 15px;
    }
    
    .tp-brand-area h2,
    .tp-brand-area h3 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    /* Hide brand name on mobile if shown */
    .tp-brand-area h6 {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .tp-product-categories-slider .swiper-wrapper {
        gap: 12px 8px;
    }
    
    .tp-product-category-thumb {
        max-width: 60px;
        margin-bottom: 5px;
    }
    
    .tp-product-category-title {
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .tp-product-categories-slider .swiper-wrapper {
        gap: 10px 6px;
    }
    
    .tp-product-category-thumb {
        max-width: 60px;
        margin-bottom: 4px;
    }
    
    .tp-product-category-title {
        font-size: 9px;
    }
}

/* Reward Points - Modern Design */
.tp-product-details-reward-points {
    background: #f0f4f8;
    border: 1px solid #b3d9f2;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 22px;
    margin-top: 22px;
}

.reward-points-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.reward-points-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.reward-points-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-points-content {
    flex: 1;
}

.reward-points-title {
    color: #1f2937;
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.reward-points-description {
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

.reward-points-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.reward-points-button {
    background: #3b82f6;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    text-align: center;
    line-height: 1.4;
}

.reward-points-purchase {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

/* RTL Support */
[dir="rtl"] .reward-points-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .reward-points-right {
    align-items: flex-start;
}

[dir="rtl"] .reward-points-left {
    flex-direction: row-reverse;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reward-points-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .reward-points-right {
        align-items: flex-start;
        width: 100%;
    }
    
    .reward-points-button {
        width: 100%;
    }
    
    [dir="rtl"] .reward-points-container {
        flex-direction: column;
    }
    
    [dir="rtl"] .reward-points-right {
        align-items: flex-start;
    }
}
/* Shepherd Theme Override */
.shepherd-theme-custom {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    font-family: inherit;
}

.shepherd-theme-custom .shepherd-header {
    background: linear-gradient(135deg, #667eea 0%, #0e6eb3 100%) !important;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    color: #fff;
}

.shepherd-theme-custom .shepherd-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.shepherd-theme-custom .shepherd-cancel-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    font-weight: 300;
    transition: all 0.3s ease;
}

.shepherd-theme-custom .shepherd-cancel-icon:hover {
    color: #fff;
    transform: rotate(90deg);
}

.shepherd-theme-custom .shepherd-text {
    padding: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.shepherd-theme-custom .shepherd-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.shepherd-theme-custom .shepherd-button {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.shepherd-theme-custom .shepherd-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #1a70ba 100%);
    color: #fff;
}

.shepherd-theme-custom .shepherd-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.shepherd-theme-custom .shepherd-button-secondary {
    background: #f3f4f6;
    color: #374151;
}

.shepherd-theme-custom .shepherd-button-secondary:hover {
    background: #e5e7eb;
}

/* Tour Start Button */
.tour-start-button {
    position: fixed !important;
    bottom: 12px !important;
    left: 30px !important;
    z-index: 9998 !important;
    background: linear-gradient(135deg, #667eea 0%, #3074c8 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 25px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.3s ease !important;
    opacity: 0;
    transform: translateY(20px);
    font-family: inherit !important;
    visibility: visible !important;
    width: fit-content;
}

.tour-start-button.show {
    opacity: 1;
    transform: translateY(0);
}

.tour-start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.tour-start-button svg {
    width: 20px;
    height: 20px;
}

/* RTL Support */
[dir="rtl"] .tour-start-button {
    left: 30px !important;
    right: auto !important;
}

[dir="rtl"] .shepherd-theme-custom .shepherd-footer {
    flex-direction: row-reverse;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .shepherd-theme-custom {
        max-width: 90%;
        margin: 0 5%;
    }

    .tour-start-button {
        display: none !important;
    }

    [dir="rtl"] .tour-start-button {
        display: none !important;
    }

    .shepherd-theme-custom .shepherd-text {
        font-size: 14px;
        padding: 15px;
    }

    .shepherd-theme-custom .shepherd-header {
        padding: 15px;
    }

    .shepherd-theme-custom .shepherd-title {
        font-size: 16px;
    }
}

/* Animation for highlighted elements */
.shepherd-target.shepherd-enabled {
    position: relative;
    z-index: 9999;
    transition: all 0.3s ease;
}

.shepherd-target.shepherd-enabled::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 3px solid #667eea;
    border-radius: 8px;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

/* Overlay styling */
.shepherd-modal-overlay-container {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #0f6fb3 100%);
}

/* Vendor Modal Continue Button */
button.btn.btn-primary.vendor-modal-continue-btn {
    background: linear-gradient(135deg, #667eea 0%, #0f6fb3 100%);
}

/* Product Request Banner Modern */
.tp-product-request-banner-modern {
    background: linear-gradient(135deg, #667eea 0%, #4378d4 100%);
    padding: 32px 32px;
    margin: 50px 0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.bb-product-detail .container {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

/* Product Request Modal */
div#productRequestModal {
    z-index: 999999;
}

.product-request-modal-header {
    padding: var(--bs-modal-header-padding);
}

.product-request-modal-body {
    padding: 10px;
}

.product-request-modal-footer {
    padding: calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);
}

.form-group-modern {
    margin-bottom: 15px;
}

/* Load More Pagination */
.tp-pagination-load-more {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    margin-top: 20px;
}

.tp-pagination-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #4378d4 100%);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
    position: relative;
}

.tp-pagination-load-more-btn .btn-text,
.tp-pagination-load-more-btn .btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tp-pagination-load-more-btn .btn-loading.d-none {
    display: none !important;
}

.tp-pagination-load-more-btn .btn-text.d-none {
    display: none !important;
}

.tp-pagination-load-more-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5568d3 0%, #3367c4 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.tp-pagination-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.tp-pagination-load-more-btn .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.tp-pagination-end {
    text-align: center;
    padding: 20px 0;
    color: #6b7280;
    font-size: 14px;
}

/* Load More Button Loading State */
.tp-pagination-load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Ensure loading text is visible when d-none is removed */
/* Override theme.css .btn-loading { color: transparent !important; } */
.tp-pagination-load-more-btn .btn-loading:not(.d-none) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    visibility: visible !important;
    opacity: 1 !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: none;
    position: static !important;
    pointer-events: auto !important;
}

/* Override theme.css .btn-loading:after rule to prevent duplicate spinner */
.tp-pagination-load-more-btn .btn-loading::after,
.tp-pagination-load-more-btn .btn-loading:not(.d-none)::after,
.tp-pagination-load-more-btn .btn-loading.d-none::after {
    display: none !important;
    content: "" !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
    position: static !important;
    animation: none !important;
}

.tp-pagination-load-more-btn .btn-text:not(.d-none) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Spinner styling */
.tp-pagination-load-more-btn .spinner-border-sm {
    border-color: rgba(255, 255, 255, 0.3);
    border-right-color: #fff;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Product Fade-in Animation */
.bb-product-items-wrapper .col {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Guest Login Banner */
.guest-login-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.98) 0%, rgba(15, 111, 179, 0.98) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.guest-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
}

.guest-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.guest-banner-icon {
    color: #fff;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.guest-banner-text {
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.guest-banner-text strong {
    font-weight: 700;
    font-size: 16px;
}

.guest-banner-text .highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
}

.guest-banner-btn {
    background: rgba(255, 255, 255, 0.25);
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.guest-banner-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff !important;
}

.guest-banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.guest-banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* RTL Support */
[dir="rtl"] .guest-banner-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .guest-banner-text {
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .guest-banner-container {
        padding: 12px 15px;
    }

    .guest-banner-content {
        gap: 12px;
    }

    .guest-banner-text {
        font-size: 14px;
        min-width: 100%;
        order: 1;
    }

    .guest-banner-btn {
        padding: 8px 20px;
        font-size: 14px;
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .guest-banner-close {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 32px;
        height: 32px;
    }

    [dir="rtl"] .guest-banner-close {
        left: auto;
        right: 10px;
    }

    .guest-banner-icon {
        display: none;
    }
}

@media (max-width: 480px) {
    .guest-banner-text {
        font-size: 13px;
    }

    .guest-banner-text strong {
        font-size: 14px;
    }
}

/* Cart Page - Mobile Quantity Selector */
@media (max-width: 768px) {
    /* Quantity selector in cart */
    .tp-cart-list .tp-product-quantity,
    .tp-cart-area .tp-product-quantity {
        position: relative;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .tp-cart-list .tp-cart-minus,
    .tp-cart-list .tp-cart-plus,
    .tp-cart-area .tp-cart-minus,
    .tp-cart-area .tp-cart-plus {
        display: inline-block;
        text-align: center;
        font-size: 16px;
        color: var(--tp-common-black);
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
    }
    
    .tp-cart-list .tp-cart-plus,
    .tp-cart-area .tp-cart-plus {
        left: auto;
        right: 0;
    }
    
    .tp-cart-list .tp-cart-minus svg,
    .tp-cart-list .tp-cart-plus svg,
    .tp-cart-area .tp-cart-minus svg,
    .tp-cart-area .tp-cart-plus svg {
        width: 14px;
        height: 14px;
        color: #333;
    }
    
    .tp-cart-list .tp-cart-input,
    .tp-cart-area .tp-cart-input {
        width: 100%;
        height: 40px;
        padding: 0 45px;
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #fff;
        -moz-appearance: textfield;
    }
    
    .tp-cart-list .tp-cart-input::-webkit-outer-spin-button,
    .tp-cart-list .tp-cart-input::-webkit-inner-spin-button,
    .tp-cart-area .tp-cart-input::-webkit-outer-spin-button,
    .tp-cart-area .tp-cart-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    
    .tp-cart-list .tp-cart-input:focus,
    .tp-cart-area .tp-cart-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }
}

/* Login and Register Pages - Mobile Styles */
@media (max-width: 768px) {
    /* Hide left column (banner) on mobile */
    .auth-card__left.col-md-6 {
        display: none !important;
    }
    
    /* Make right column full width on mobile */
    .auth-card__right.col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    /* Remove padding from row on mobile */
    .row.justify-content-center.py-5 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Feedback Modal - Mobile Responsive */
@media (max-width: 768px) {
    .feedback-modal {
        padding: 0 !important;
    }
    
    .feedback-modal > div {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 20px 15px !important;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .feedback-close-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 28px !important;
        top: 10px !important;
        right: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(0, 0, 0, 0.05) !important;
        border-radius: 50% !important;
        transition: all 0.2s ease !important;
    }
    
    .feedback-close-btn:hover {
        background: rgba(0, 0, 0, 0.1) !important;
        transform: scale(1.1);
    }
    
    .feedback-modal h2 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
        padding-right: 40px;
    }
    
    .feedback-modal p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
        padding-right: 0;
    }
    
    .feedback-modal form {
        padding: 0 !important;
    }
    
    /* Form inputs on mobile */
    .feedback-modal input[type="text"],
    .feedback-modal input[type="email"],
    .feedback-modal input[type="tel"],
    .feedback-modal textarea,
    .feedback-modal select {
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
        margin-bottom: 15px !important;
    }
    
    .feedback-modal textarea {
        min-height: 100px !important;
        resize: vertical;
    }
    
    /* Radio buttons and checkboxes */
    .feedback-modal input[type="radio"],
    .feedback-modal input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        margin-left: 8px !important;
    }
    
    /* Labels */
    .feedback-modal label {
        font-size: 14px !important;
        margin-bottom: 8px !important;
        display: block;
    }
    
    /* Submit button */
    .feedback-modal button[type="submit"],
    .feedback-modal input[type="submit"] {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
        margin-top: 20px !important;
    }
    
    /* Rating stars or similar elements */
    .feedback-modal .rating,
    .feedback-modal .stars {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    /* Hide floating button on mobile or adjust position */
  
    
    .feedback-floating-button > div {
        width: 50px !important;
        height: 50px !important;
    }
    
    .feedback-floating-button svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Vendor Products Modal - Mobile Responsive */
@media (max-width: 768px) {
    #vendorProductsModal .modal-dialog {
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    #vendorProductsModal .modal-content {
        border-radius: 0 !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
    }
    
    #vendorProductsModal .modal-header {
        padding: 15px 20px !important;
        border-radius: 0 !important;
        flex-shrink: 0;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    #vendorProductsModal .modal-title {
        font-size: 18px !important;
        padding-right: 0 !important;
        padding-left: 50px !important;
    }
    
    #vendorProductsModal .modal-title svg,
    #vendorProductsModal .modal-title x-core\:icon {
        font-size: 20px !important;
        margin-left: 8px !important;
    }
    
    #vendorProductsModal .btn-close,
    #vendorProductsModal .vendor-modal-close-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 24px !important;
        opacity: 1 !important;
        background: rgba(255, 255, 255, 0.25) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        position: relative !important;
        z-index: 10 !important;
        right: auto !important;
        left: 15px !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }
    
    #vendorProductsModal .btn-close::before,
    #vendorProductsModal .vendor-modal-close-btn::before {
        content: '×' !important;
        font-size: 32px !important;
        line-height: 1 !important;
        color: #fff !important;
        font-weight: 300 !important;
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    #vendorProductsModal .btn-close:hover,
    #vendorProductsModal .vendor-modal-close-btn:hover {
        background: rgba(255, 255, 255, 0.4) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        transform: scale(1.1) !important;
    }
    
    #vendorProductsModal .btn-close:active,
    #vendorProductsModal .vendor-modal-close-btn:active {
        transform: scale(0.95) !important;
    }
    
    #vendorProductsModal .modal-body {
        padding: 20px 15px !important;
        flex: 1;
        overflow-y: auto;
    }
    
    #vendorProductsModal .vendor-modal-content {
        max-height: none !important;
        padding-right: 0 !important;
    }
    
    #vendorProductsModal .alert {
        padding: 12px 15px !important;
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    
    #vendorProductsModal .alert p {
        font-size: 14px !important;
        margin: 0 !important;
    }
    
    #vendorProductsModal .vendor-terms h6 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }
    
    #vendorProductsModal .vendor-terms ul li {
        padding: 10px 0 !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    #vendorProductsModal .vendor-terms ul li svg,
    #vendorProductsModal .vendor-terms ul li x-core\:icon {
        font-size: 16px !important;
        margin-left: 8px !important;
    }
    
    #vendorProductsModal .vendor-notice {
        padding: 12px 15px !important;
        margin-bottom: 20px !important;
    }
    
    #vendorProductsModal .vendor-notice p {
        font-size: 14px !important;
        margin: 0 !important;
    }
    
    #vendorProductsModal .vendor-checkbox {
        margin-bottom: 15px !important;
    }
    
    #vendorProductsModal .form-check-input {
        width: 20px !important;
        height: 20px !important;
        margin-left: 8px !important;
    }
    
    #vendorProductsModal .form-check-label {
        font-size: 14px !important;
    }
    
    #vendorProductsModal .modal-footer {
        padding: 15px 20px !important;
        border-top: 1px solid #f0f0f0 !important;
        flex-direction: column-reverse !important;
        gap: 10px !important;
        flex-shrink: 0;
    }
    
    #vendorProductsModal .modal-footer button {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
    }
    
    #vendorProductsModal .modal-footer button svg,
    #vendorProductsModal .modal-footer button x-core\:icon {
        font-size: 18px !important;
    }
}


.bb-product-attribute-swatch-list.visual-swatch .bb-product-attribute-swatch-display, .bb-product-attribute-swatch-list.visual-swatch .bb-product-attribute-text-display
 
 {
    width: 60px !important;
    height: 60px !important;
}
/* Floating Filter Button CSS */
.tp-floating-filter-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--tp-common-black);
    color: var(--tp-common-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.tp-floating-filter-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.tp-floating-filter-btn:hover {
    background-color: var(--tp-theme-primary);
    color: var(--tp-common-white);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.tp-floating-filter-btn:active {
    transform: scale(0.95);
}

/* Hide on desktop when sidebar is visible */
@media (min-width: 992px) {
    .tp-floating-filter-btn {
        display: none;
    }
}

/* RTL support */
[dir="rtl"] .tp-floating-filter-btn {

}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .tp-floating-filter-btn {
        width: 52px;
        height: 52px;
        bottom: 16px;
        right: 16px;
    }

    [dir="rtl"] .tp-floating-filter-btn {
                right: 30px;
        left: 0;
        top: 50%;
        transform: translateY(-57%);
    }

    .tp-floating-filter-btn svg {
        width: 18px;
        height: 18px;
    }
}

span.bb-product-attribute-text-display

 {
    font-weight: bold;
}