
/*** Spinner Start ***/
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

.cursor-pointer:hover {
    opacity: 0.8;
}

/* Sticky Header & Navbar */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Desktop header sticky (white background) */
.container-fluid.px-5.py-3.sticky-top {
    background: #ffffff !important;
    z-index: 10001;
}

/* Navbar sticky - preserve orange background */
.nav-bar.sticky-top {
    z-index: 10002;
}

/* Ensure content flows beneath sticky elements */
body {
    padding-top: 0;
}

/* Mobile sticky adjustments */
@media (max-width: 991px) {
    .sticky-top {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    /* Mobile search bar sticky adjustment */
    .d-lg-none.sticky-top {
        background: #f8f9fa !important;
        z-index: 998;
    }
}

/* Fix for empty product rows taking space */
.tab-content .row:empty {
    display: none;
    margin: 0;
    padding: 0;
    min-height: 0;
}

.tab-content .row {
    min-height: 0;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/

/*** Modern Product Card Design ***/
.product-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px 0 rgba(102, 126, 234, 0.25), 0 0 0 1px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(242,139,0,0.05) 100%);
}

/* Image Section */
.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1);
}

.product-card:hover .product-image {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.05);
}

/* Badges */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.badge-sale {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.badge-deal {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #fff;
}

/* Overlay on hover */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-overlay {
    opacity: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(242, 139, 0, 0.75) 100%);
}

.btn-view {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #667eea;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.7);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
}

.product-card:hover .btn-view {
    transform: scale(1);
}

.btn-view:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: scale(1.15) rotate(5deg) !important;
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Product Content */
.product-content {
    padding: 16px 20px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.product-category {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.product-rating i {
    font-size: 14px;
    color: #ffc107;
}

.product-rating i.text-muted {
    color: #ddd !important;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: #f28b00 !important;
}

/* Shop page price styling */
.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #f28b00 !important;
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

/* Product Actions */
.product-actions {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-cart {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f28b00 0%, #ff6b6b 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(242, 139, 0, 0.3);
}

.btn-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cart:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cart:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-cart:active {
    transform: translateY(0);
}

/* Shop page Add to Cart button */
.btn-add-cart {
    width: 100%;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #f28b00 0%, #ff6b6b 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(242, 139, 0, 0.3);
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #e67e00 0%, #ff5252 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(242, 139, 0, 0.5);
}

/* Shop page Quick View button */
.btn-quick-view {
    padding: 12px 16px !important;
    background: #fff !important;
    color: #f28b00 !important;
    border: 2px solid #f28b00 !important;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-quick-view:hover {
    background: #f28b00 !important;
    color: #fff !important;
}

.product-actions-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border: 2px solid rgba(242, 139, 0, 0.3) !important;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-icon:hover {
    background: linear-gradient(135deg, #f28b00 0%, #ff6b6b 100%) !important;
    border-color: rgba(242, 139, 0, 0.5) !important;
    color: #fff;
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Mobile Optimizations for New Cards */
@media (max-width: 991px) {
    .product-image-wrapper {
        height: 240px !important;
    }
    
    .product-title {
        font-size: 15px !important;
        min-height: 42px !important;
    }
}

@media (max-width: 767px) {
    .product-image-wrapper {
        height: 200px !important;
    }
    
    .product-content {
        padding: 12px 16px 8px !important;
    }
    
    .product-actions {
        padding: 0 16px 12px !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .product-title {
        font-size: 14px !important;
        min-height: 40px !important;
    }
    
    .price-current {
        font-size: 18px !important;
    }
}

@media (max-width: 575px) {
    .product-image-wrapper {
        height: 180px !important;
    }
    
    .product-badge {
        padding: 4px 10px !important;
        font-size: 10px !important;
    }
}

/* Desktop improvements for product cards */
@media (min-width: 992px) {
    /* Slightly tighter grid spacing on large screens */
    .products .row.g-4 {
        gap: 0.75rem; /* ~12px */
    }

    /* Reduce image/card height so cards feel wider (less tall) */
    .product-image-wrapper {
        height: 220px !important;
    }

    /* Ensure every card is similar height but not too tall */
    .product-card {
        min-height: 420px;
    }

    /* Make titles and prices more prominent on desktop */
    .product-title {
        font-size: 18px;
        min-height: 56px;
    }

    .price-current {
        font-size: 22px;
    }

    .product-content {
        padding: 12px 14px 10px;
    }

    .product-actions {
        padding: 0 14px 12px;
    }

    /* Hover: lift less aggressively on desktop for stability */
    .product-card:hover {
        transform: translateY(-8px) scale(1.015);
    }
}

/* Use Bootstrap row/col layout for tabbed product containers so Bootstrap's
   responsive columns behave exactly like the 'Just In' section above. The
   previous grid override interfered with `.col-*` sizing; removed to restore
   standard behavior. */

/* Ensure 4-up layout on medium screens (>=768px) as well */
@media (min-width: 768px) {
    #justInGrid > [class*="col-"],
    #products-tab-1 > [class*="col-"],
    #products-tab-2 > [class*="col-"],
    #products-tab-3 > [class*="col-"],
    #products-tab-4 > [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }

    #justInGrid .col-md-3,
    #products-tab-1 .col-md-3,
    #products-tab-2 .col-md-3,
    #products-tab-3 .col-md-3,
    #products-tab-4 .col-md-3 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 25% !important;
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }

    /* Slightly reduce gutter so 4 columns fit comfortably */
    .products .row.g-4 {
        gap: 12px;
    }
}

/* Additional safety overrides: ensure `.col-lg-3` inside the product tabs
   resolves to exactly 25% on large screens and provide a small gutter so
   four cards appear per row even if other CSS interferes. This preserves
   the intended visual parity with the Just In/New Arrivals section. */
@media (min-width: 992px) {
    #products-tab-1 > [class*="col-"],
    #products-tab-2 > [class*="col-"],
    #products-tab-3 > [class*="col-"],
    #products-tab-4 > [class*="col-"],
    #justInGrid > [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }

    #products-tab-1 .col-lg-3,
    #products-tab-2 .col-lg-3,
    #products-tab-3 .col-lg-3,
    #products-tab-4 .col-lg-3,
    #products-tab-1 .col-xl-3,
    #products-tab-2 .col-xl-3,
    #products-tab-3 .col-xl-3,
    #products-tab-4 .col-xl-3,
    #justInGrid .col-lg-3,
    #justInGrid .col-xl-3 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 25% !important;
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }

    /* Slightly reduce gutter so 4 columns fit comfortably */
    .products .row.g-4 {
        gap: 12px;
    }
}

/* Styles for the product list layout used by `productListCarousel` (All Product Items) */
#productListCarousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: start;
}

.productImg-item {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.98));
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.productImg-item .row {
    margin: 0;
}

.products-mini-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.products-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.products-mini-content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.products-mini-content .h4,
.products-mini-content a.d-block.h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: #222;
}

.products-mini-content .text-primary {
    font-size: 18px;
    font-weight: 700;
}

.products-mini-add {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.products-mini-add .btn {
    white-space: nowrap;
}

/* Ensure consistent spacing inside the carousel items when Owl is active */
.productImg-item .products-mini-icon {
    position: absolute;
    top: 8px;
    right: 8px;
}

@media (max-width: 767px) {
    #productListCarousel {
        grid-template-columns: 1fr;
    }
    .products-mini-img {
        height: 180px;
    }
}

/*** Legacy Compatibility - Old Product Card Styles ***/
.product .product-item .product-item-inner .product-item-inner-item .product-new {
    background: #2575fc;
}

.product .product-item .product-item-inner .product-item-inner-item .product-sale {
    background: #ff6b6b;
}

/* Title and price layout */
.product .product-item .text-center.rounded-bottom h4,
.product .product-item .text-center.rounded-bottom a.h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.product .product-item .text-center.rounded-bottom a.d-block {
    color: #777;
    font-size: 0.9rem;
}

.product .product-item .text-center.rounded-bottom del {
    color: #999;
    margin-right: 8px;
}

.product .product-item .text-center.rounded-bottom .text-primary.fs-5 {
    color: #f28b00 !important;
    font-weight: 700;
}

/* Responsive image adjustments */
@media (max-width: 767.98px) {
    .product .product-item .product-item-inner .product-item-inner-item img {
        height: 180px;
    }
    .product .product-item { min-height: 320px; }
}

/* Keep product mini images consistent */
.products .products-mini .products-mini-item .products-mini-img img {
    height: 140px;
    object-fit: cover;
}

/* New CSS Grid layout for product lists (4-up on desktop) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem; /* consistent spacing */
    align-items: start;
    box-sizing: border-box;
}

/* Ensure grid children fill available width and don't overflow */
.product-grid > * {
    width: 100%;
    box-sizing: border-box;
}

/* Preserve card full-height behavior inside grid */
.product-card {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    /* 3 columns on medium/tablet screens */
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    /* 2 columns on small tablets */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 575px) {
    /* 1 column on phones */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* small polish for action icons */
.product .product-item .product-item-add .rounded-circle.btn-sm-square {
    width: 38px; height: 38px; display:flex; align-items:center; justify-content:center;
}
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}

.btn.btn-primary {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    transition: 0.5s;
}

.btn.btn-primary:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white);
}

.btn.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/*** Topbar Start ***/
.topbar {
    padding: 2px 10px 2px 20px;
    background: var(--bs-primary) !important;
}

.topbar a,
.topbar a i {
    transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
    color: var(--bs-secondary) !important;
}


@media (max-width: 768px) {
    .topbar {
        display: none;    
    }
}
/*** Topbar End ***/


/*** Navbar ***/
.nav-bar {
    position: relative;
    z-index: 10002;
}

.nav-bar .categories-bars {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-bar .categories-bars .categories-bars-item {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-bar .categories-bars .categories-bars-item:last-child {
    border-bottom: none;
}

.nav-bar .categories-bars .categories-bars-item a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.nav-bar .categories-bars .categories-bars-item span {
    color: #6c757d;
    font-size: 13px;
    font-weight: 600;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-bar .categories-bars .categories-bars-item:hover {
    background: var(--bs-primary);
    transform: translateX(5px);
}

.nav-bar .categories-bars .categories-bars-item:hover a {
    color: #ffffff !important;
    font-weight: 600;
}

.nav-bar .categories-bars .categories-bars-item:hover span {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2);
}

.nav-bar .navbar.navbar-light {
    padding: 0 !important;
    position: relative;
    z-index: 10;
}

.nav-bar .navbar .navbar-nav .nav-link {
    padding: 18px 15px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.65);
    position: relative;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.fixed-top.bg-white .navbar .navbar-nav .nav-link:hover,
.fixed-top.bg-white .navbar .navbar-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Underline effect for active and hover */
.navbar .navbar-nav .nav-link.active::after,
.navbar .navbar-nav .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 15px;
    right: 15px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }
}

@media (max-width: 992px) {
    .nav-bar .navbar .navbar-nav .nav-link {
        padding: 12px 15px;
        color: #333 !important;
        font-weight: 600;
    }
    
    .nav-bar .navbar .navbar-nav .nav-link.active {
        color: #000000 !important;
        font-weight: 700;
    }
    
    .nav-bar .navbar .navbar-nav .nav-link:hover {
        color: #000000 !important;
    }
    
    /* Mobile logo sizing */
    .navbar-brand img {
        height: 40px !important;
    }
    
    /* Mobile phone button styling ONLY in navbar - purple/blue */
    .nav-bar .btn.btn-secondary {
        width: 100%;
        margin-top: 10px;
        padding: 12px 20px !important;
        font-size: 16px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: #ffffff !important;
        border: none !important;
    }
    
    .nav-bar .btn.btn-secondary:hover {
        background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%) !important;
        color: #ffffff !important;
    }
}

.dropdown .dropdown-menu {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: none;
    padding: 10px 0;
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: #ffffff !important;
    transition: .5s;
    opacity: 1;
}

.navbar .navbar-toggler {
    padding: 8px 12px;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    border-radius: 8px;
}

.navbar .navbar-toggler .fa-bars {
    color: #ffffff;
    font-size: 20px;
}

.navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

#allCat {
    position: absolute; 
    left: 0; 
    width: 100%;
    max-width: 250px;
    top: 51px; 
    z-index: 10003 !important; 
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
}

/* Ensure category dropdown stays on top when navbar is sticky */
.sticky-top #allCat {
    position: fixed;
    top: auto;
    margin-top: 51px;
    z-index: 10003 !important;
    left: auto;
}

.nav-bar .navbar-toggler {
    border-radius: 8px !important; 
    box-shadow: none !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    background: transparent !important;
}

.nav-bar .navbar-toggler h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-align: left;
    padding: 10px 0;
}

.nav-bar .navbar-toggler .fa-bars {
    color: #ffffff !important;
}

/* Mobile-specific navbar - keep orange background */
@media (max-width: 991px) {
    .nav-bar .navbar.bg-primary {
        background: var(--bs-primary) !important;
        padding: 10px 0 !important;
    }
    
    .navbar-brand {
        padding: 5px 0 !important;
    }
}

/*** Navbar End ***/

/*** Carousel Header Start ***/
.header-carousel.owl-carousel .owl-nav .owl-prev,
.header-carousel.owl-carousel .owl-nav .owl-next {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 87%;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: var(--bs-white);
}

.header-carousel.owl-carousel .owl-nav .owl-prev {
    right: 130px;
    transition: 0.5s;
}

.header-carousel.owl-carousel .owl-nav .owl-next {
    right: 60px;
    transition: 0.5s;
}

.header-carousel.owl-carousel .owl-nav .owl-prev:hover,
.header-carousel.owl-carousel .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.carousel {
    position: relative;
    z-index: 1 !important;
}

/* Ensure carousel doesn't overlap dropdowns or header */
.header-carousel,
.owl-carousel {
    position: relative;
    z-index: 1 !important;
}

.carousel .carousel-header-banner {
    position: relative;
    z-index: 1;
}

.carousel .carousel-banner-offer {
    position: absolute;
    top: 20px; 
    left: 20px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.carousel .carousel-banner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; 
    left: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
/*** Carousel Header End ***/

/*** Featured Categories Start ***/
.col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
}

@media (max-width: 991.98px) {
    .col-lg-2-4 {
        width: 33.333333%;
    }
}

@media (max-width: 767.98px) {
    .col-lg-2-4 {
        width: 50%;
    }
}

.category-card {
    background: var(--bs-white);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--bs-primary) !important;
}

.category-card:hover .category-icon i {
    transform: scale(1.2);
    color: var(--bs-secondary);
}

.category-card h5 {
    color: var(--bs-dark);
    transition: color 0.3s;
}

.category-card:hover h5 {
    color: var(--bs-primary);
}
/*** Featured Categories End ***/

/*** Just In Section Start ***/
.just-in-card {
    transition: all 0.3s ease;
    background: var(--bs-white);
}

.just-in-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.just-in-card:hover .just-in-img img {
    transform: scale(1.1);
}

.just-in-card:hover .just-in-overlay {
    opacity: 1 !important;
}

.just-in-card .z-3 {
    z-index: 3;
}
/*** Just In Section End ***/


/*** Page Header start ***/
.page-header {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/carousel-1.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/*** Page Header end ***/


/*** Products Start ***/
.product .product-item {
    width: 100%;
    height: 100%;
    position: relative;
}

.product .product-item .product-item-inner {
    height: 100%;
}

.product .product-item .product-item-add {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: 0.5s;
    z-index: 1;
}

.product .product-item:hover .product-item-add {
    background: var(--bs-white);
    margin-bottom: -124px;
    opacity: 1;
}
.product .product-item:hover .product-item-inner {
    border-bottom: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.product .product-item .product-item-inner .product-item-inner-item {
    position: relative;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    overflow: hidden;
}

.product .product-item .product-item-inner .product-item-inner-item .product-new,
.product .product-item .product-item-inner .product-item-inner-item .product-sale {
    position: absolute;
    width: 60px; 
    height: 60px;
    border-radius: 60px; 
    top: 20px; 
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center; 
}

.product .product-item .product-item-inner .product-item-inner-item .product-new {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.product .product-item .product-item-inner .product-item-inner-item .product-sale {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.product .product-item .product-item-inner img {
    transition: 0.5s;
}

/* Ensure product images keep consistent size and cards don't stretch full page */
.product .product-item {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    min-height: 380px; /* reserve space for image + details */
}

.product .product-item .product-item-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.product .product-item .product-item-inner .product-item-inner-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.product .product-item .text-center.rounded-bottom {
    padding: 1rem 1rem 3.5rem; /* leave room for the action bar */
    flex-shrink: 0;
}

.product .product-item:hover .product-item-inner img {
    transform: scale(1.1);
}

.product .product-item .product-item-inner .product-item-inner-item .product-details {
    position: absolute;
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.5s;
}

.product .product-item .product-item-inner .product-item-inner-item .product-details a i {
    width: 50px; 
    height: 50px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: 0.5s;
}

.product .product-item:hover .product-item-inner .product-item-inner-item .product-details a i:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.product .product-item:hover .product-item-inner .product-details {
    opacity: 1;
}

.product .tab-class .nav .nav-item a.active {
    background: var(--bs-primary) !important;
}

.product .tab-class .nav .nav-item a.active span {
    color: var(--bs-white) !important;
}
/*** Product End ***/


/*** ProductList Categories Start ***/
.productList {
    min-height: 0 !important;
}

.productList .productList-carousel {
    height: auto !important;
    min-height: 0 !important;
}

/* Only set height when carousel has content */
.productList .productList-carousel.owl-carousel {
    height: 215px !important;
}

/* Reduce height on desktop for more compact view */
@media (min-width: 992px) {
    .productList .productList-carousel.owl-carousel {
        height: 180px !important;
    }
}

.productList .productList-carousel .productImg-carousel.productList-item .productImg-item {
    position: relative;
    width: calc(100% - 1px);
    transition: 0.5s;
}

.productList .productList-carousel .productImg-carousel.productList-item .productImg-item {
    margin-bottom: 75px;
}

@media (min-width: 992px) {
    .productList .productList-carousel .productImg-carousel.productList-item .productImg-item {
        margin-bottom: 50px;
    }
}

.productList .productList-carousel .productImg-carousel.productList-item .productImg-item:hover {
    border-bottom: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.productList .productList-carousel .owl-nav .owl-prev,
.productList .productList-carousel .owl-nav .owl-next {
    position: absolute;
    top: -40px;
    padding: 5px 40px;
    border-radius: 30px;
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: 0.5s;
}

.productList .productList-carousel .owl-nav .owl-prev:hover,
.productList .productList-carousel .owl-nav .owl-next:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}

.productList .productList-carousel .owl-nav .owl-prev {
    left: 0;
}

.productList .productList-carousel .owl-nav .owl-next {
    right: 0;
}

.productList .productList-carousel .productImg-carousel .owl-nav .owl-prev,
.productList .productList-carousel .productImg-carousel .owl-nav .owl-next {
    position: absolute;
    top: 0px;
    padding: 5px 10px;
    border-radius: 30px;
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: 0.5s;
    opacity: 0;
}

.productList .productList-carousel .productImg-carousel .owl-nav .owl-prev:hover,
.productList .productList-carousel .productImg-carousel .owl-nav .owl-next:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}

.productList .productList-carousel .productImg-carousel .owl-nav .owl-prev {
    left: 0;
}

.productList .productList-carousel .productImg-carousel .owl-nav .owl-next {
    right: 0;
}

.productList .productList-carousel .productImg-carousel.productList-item:hover .owl-nav .owl-prev,
.productList .productList-carousel .productImg-carousel.productList-item:hover .owl-nav .owl-next {
    opacity: 1;
}
/*** ProductList Categories End ***/



/*** bestseller Products Start ***/
.products .products-mini .products-mini-item {
    position: relative;
    border-radius: 10px;
    transition: 0.5s;
}

.products .products-mini .products-mini-item:hover {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.products .products-mini .products-mini-item .products-mini-img {
 position: relative;
 overflow: hidden;
}

.products .products-mini .products-mini-item .products-mini-img img {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    transition: 0.5s;
}

/* Keep mini product images constrained to prevent layout shifts */
.products .products-mini .products-mini-item .products-mini-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.products .products-mini .products-mini-item:hover .products-mini-img img {
    border-bottom-left-radius: 0 !important;
    transform: scale(1.3);
}

.products .products-mini .products-mini-item .products-mini-img .products-mini-icon {
    position: absolute;
    width: 50px; 
    height: 50px; 
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.5s;
}

.products .products-mini .products-mini-item:hover .products-mini-img .products-mini-icon {
    opacity: 1;
}

.products .products-mini .products-mini-item:hover .products-mini-img .products-mini-icon:hover {
    background: var(--bs-secondary) !important;
}

.products .products-mini .products-mini-item .products-mini-add {
    position: absolute;
    bottom: 0;
    left: -1px;
    right: -1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bs-white);
    transition: 0.5s;
    z-index: 9;
    opacity: 0;
}

.products .products-mini .products-mini-item:hover .products-mini-add {
    opacity: 1;
    margin-bottom: -75px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
/*** bestseller Products End ***/

/*** Pagination Start ***/
.pagination {
    display: inline-block;
}
  
.pagination a {
    color: var(--bs-dark);
    padding: 10px 16px;
    text-decoration: none;
    transition: 0.5s;
    border: 1px solid var(--bs-secondary);
    margin: 0 4px;
}
  
.pagination a.active {
    background-color: var(--bs-primary);
    color: var(--bs-light);
    border: 1px solid var(--bs-secondary);
}
  
.pagination a:hover:not(.active) {background-color: var(--bs-primary)}

.nav.nav-tabs .nav-link.active {
    border-bottom: 2px solid var(--bs-secondary) !important;
}
/*** Pagination End ***/

/*** Shop Page Start ***/
.shop .product-categories .categories-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.shop .product-categories .categories-item a {
    transition: 0.5s;
}

.shop .product-categories .categories-item a:hover {
    color: var(--bs-primary) !important;
}

.shop .product-color .product-color-item {
    display: flex;
    padding: 10px 0;
}

.shop .product-color .product-color-item a {
    transition: 0.5s;
}

.shop .product-color .product-color-item a:hover {
    color: var(--bs-secondary);
}

.shop .price {
    padding: 10px 0;
}

.shop .additional-product .additional-product-item {
    padding: 10px 0;
}

.shop .featured-product .featured-product-item {
    display: flex;
    align-items: center;
    justify-content: start;
}

.shop .product-tags .product-tags-items a {
    display: inline-block !important;
    background: var(--bs-white);
    color: var(--bs-dark);
    transition: 0.5;
}

.shop .product-tags .product-tags-items a:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

/*** Shop Page End ***/


/*** Single Products Start ***/
.single-product .owl-nav .owl-prev,
.single-product .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: -13%;
    font-size: 22px;
    color: var(--bs-primary);
}

.single-product .owl-nav .owl-prev {
    left: 0;
}

.single-product .owl-nav .owl-next {
    right: 0 !important;
}


.single-product .single-carousel .owl-dots {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    transition: 0.5s;
}

.single-product .single-carousel .owl-dots .owl-dot img {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    margin-right: 15px;
    border: 2px solid var(--bs-primary);
    transition: 0.5s;
}

.single-product .single-carousel .owl-dots .owl-dot.active img {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    border: 4px solid var(--bs-secondary);
}














.related-product .related-carousel .related-item {
    width: 100%;
    height: 100%;
    position: relative;
    margin-bottom: 125px;
    transition: 0.5s;
}

.related-product .related-carousel .related-item .related-item-add {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: 0.5s;
    z-index: 99;
}

.related-product .related-carousel .related-item:hover .related-item-add {
    background: var(--bs-white);
    margin-bottom: -125px;
    opacity: 1;
}

.related-product .related-carousel .related-item:hover .related-item-inner {
    border-bottom: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.related-product .related-carousel .related-item .related-item-inner .related-item-inner-item {
    position: relative;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    overflow: hidden;
}

.related-product .related-carousel .related-item .related-item-inner .related-item-inner-item .related-new,
.related-product .related-carousel .related-item .related-item-inner .related-item-inner-item .related-sale {
    position: absolute;
    width: 60px; 
    height: 60px;
    border-radius: 60px; 
    top: 20px; 
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center; 
    z-index: 5;
}

.related-product .related-carousel .related-item .related-item-inner .related-item-inner-item .related-new {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.related-product .related-carousel .related-item .related-item-inner .related-item-inner-item .related-sale {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.related-product .related-carousel .related-item .related-item-inner img {
    transition: 0.5s;
}

.related-product .related-carousel .related-item:hover .related-item-inner img {
    transform: scale(1.1);
}

.related-product .related-carousel .related-item .related-item-inner .related-item-inner-item .related-details {
    position: absolute;
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.5s;
}

.related-product .related-carousel .related-item .related-item-inner .related-item-inner-item .related-details a i {
    width: 50px; 
    height: 50px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: 0.5s;
}

.related-product .related-carousel .related-item:hover .related-item-inner .related-item-inner-item .related-details a i:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.related-product .related-carousel .related-item:hover .related-item-inner .related-details {
    opacity: 1;
}


.related-product .owl-nav .owl-prev,
.related-product .owl-nav .owl-next {
    position: absolute;
    top: -40px;
    padding: 5px 40px;
    border-radius: 30px;
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: 0.5s;
}

.related-product .owl-nav .owl-prev {
    left: 0;
}

.related-product .owl-nav .owl-next {
    right: 0;
}

.related-product .owl-nav .owl-prev:hover,
.related-product .owl-nav .owl-next:hover {
    background: var(--bs-secondary) !important;
}
/*** Single Products End ***/

/*** Legacy product item compatibility - kept for backwards compatibility ***/
:is(.product, .products) .product-item {
    background: var(--bs-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(12, 35, 64, 0.03);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

:is(.product, .products) .product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(12, 35, 64, 0.08);
}

:is(.product, .products) .product-item .product-item-inner-item {
    position: relative;
    display: block;
}

:is(.product, .products) .product-item .product-item-inner .product-item-inner-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

:is(.product, .products) .product-item .product-item-inner .product-item-inner-item .product-details {
    background: rgba(255,255,255,0.0);
}

/* Hover behavior: hide action bar and rating until hover */
:is(.product, .products) .product-item .product-item-add {
    opacity: 0;
    transform: translateY(18px);
    transition: transform 0.28s ease, opacity 0.28s ease;
}

:is(.product, .products) .product-item:hover .product-item-add {
    opacity: 1;
    transform: translateY(0);
}

/* Hide rating stars and small action icons until hover */
:is(.product, .products) .product-item .product-item-add .fa-star,
:is(.product, .products) .product-item .product-item-add .rounded-circle {
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.28s ease;
}

:is(.product, .products) .product-item:hover .product-item-add .fa-star,
:is(.product, .products) .product-item:hover .product-item-add .rounded-circle {
    opacity: 1;
    transform: translateY(0);
}

/* Eye icon overlay: center, visible on hover, slightly larger */
:is(.product, .products) .product-item .product-item-inner .product-item-inner-item .product-details {
    opacity: 0;
    transition: opacity 0.28s ease;
}

:is(.product, .products) .product-item:hover .product-item-inner .product-item-inner-item .product-details {
    opacity: 1;
}

:is(.product, .products) .product-item .product-item-inner .product-item-inner-item .product-details a i {
    width: 64px;
    height: 64px;
    font-size: 20px;
    border-radius: 12px;
    background: rgba(242,139,0,0.95);
    color: #fff;
}

/* Ensure the action area does not push the card height when shown */
:is(.product, .products) .product-item .text-center.rounded-bottom {
    padding-bottom: 1.25rem; /* leave small space, action bar overlays */
}

:is(.product, .products) .product-item .product-item-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.0), rgba(255,255,255,0.95));
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(.2,.9,.2,1), opacity 0.32s ease;
    padding: 18px 20px;
}

:is(.product, .products) .product-item:hover .product-item-add {
    transform: translateY(0);
    opacity: 1;
}

:is(.product, .products) .product-item .product-item-add .btn {
    border-radius: 28px;
    padding: 10px 22px;
    font-weight: 600;
}

:is(.product, .products) .product-item .product-item-add .btn.btn-primary {
    background: #f28b00 !important;
    border: none !important;
    color: #fff !important;
}

:is(.product, .products) .product-item .product-item-inner .product-item-inner-item .product-new,
:is(.product, .products) .product-item .product-item-inner .product-item-inner-item .product-sale {
    width: 56px;
    height: 56px;
    line-height: 56px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

:is(.product, .products) .product-item .text-center.rounded-bottom h4,
:is(.product, .products) .product-item .text-center.rounded-bottom a.h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

:is(.product, .products) .product-item .text-center.rounded-bottom a.d-block {
    color: #777;
    font-size: 0.9rem;
}

:is(.product, .products) .product-item .text-center.rounded-bottom del {
    color: #999;
    margin-right: 8px;
}

:is(.product, .products) .product-item .text-center.rounded-bottom .text-primary.fs-5 {
    color: #f28b00 !important;
    font-weight: 700;
}

/*** Enhanced Product Card Animations & Responsiveness ***/

/* Smooth skeleton loader for empty product containers */
:is(.product, .products) .row.g-4:empty::before {
    content: '';
    display: block;
    width: 100%;
    height: 400px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced hover state with subtle scale and shadow depth */
:is(.product, .products) .product-item {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

:is(.product, .products) .product-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 48px rgba(12, 35, 64, 0.12), 0 8px 16px rgba(12, 35, 64, 0.06);
}

/* Stagger animation for product grid items using WOW.js delays */
:is(.product, .products) .product-item.fadeInUp {
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(.2, .9, .2, 1);
}

/* Image zoom effect on hover */
:is(.product, .products) .product-item .product-item-inner-item img {
    transition: transform 0.5s cubic-bezier(.2, .9, .2, 1), filter 0.3s ease;
}

:is(.product, .products) .product-item:hover .product-item-inner-item img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

/* Smooth overlay fade for product details */
:is(.product, .products) .product-item .product-item-inner-item .product-details {
    transition: background 0.3s ease, opacity 0.3s ease;
}

:is(.product, .products) .product-item:hover .product-item-inner-item .product-details {
    background: rgba(0, 0, 0, 0.4);
}

/* Badge pulse animation on hover */
:is(.product, .products) .product-item:hover .product-new,
:is(.product, .products) .product-item:hover .product-sale {
    animation: badge-pulse 0.6s ease;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Action button hover states with micro-interactions */
:is(.product, .products) .product-item .product-item-add .btn.btn-primary {
    transition: all 0.28s cubic-bezier(.2, .9, .2, 1);
    position: relative;
    overflow: hidden;
}

:is(.product, .products) .product-item .product-item-add .btn.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

:is(.product, .products) .product-item .product-item-add .btn.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

:is(.product, .products) .product-item .product-item-add .btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 139, 0, 0.4);
}

:is(.product, .products) .product-item .product-item-add .btn.btn-primary:active {
    transform: translateY(0);
}

/* Icon button hover effects */
:is(.product, .products) .product-item .product-item-add .rounded-circle {
    transition: all 0.26s ease;
}

:is(.product, .products) .product-item .product-item-add .rounded-circle:hover {
    transform: scale(1.12) rotate(6deg);
    background: #f28b00 !important;
    border-color: #f28b00 !important;
}

:is(.product, .products) .product-item .product-item-add .rounded-circle:hover i {
    color: #fff !important;
}

/* Star rating hover effect */
:is(.product, .products) .product-item .product-item-add .fa-star {
    transition: all 0.22s ease;
}

:is(.product, .products) .product-item:hover .product-item-add .fa-star.text-primary {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(242, 139, 0, 0.3));
}

/* Responsive grid adjustments */
@media (max-width: 1399px) {
    :is(.product, .products) .product-item .product-item-inner .product-item-inner-item img {
        height: 220px;
    }
}

@media (max-width: 1199px) {
    :is(.product, .products) .product-item .product-item-inner .product-item-inner-item img {
        height: 200px;
    }
    
    :is(.product, .products) .product-item .text-center.rounded-bottom h4,
    :is(.product, .products) .product-item .text-center.rounded-bottom a.h4 {
        font-size: 0.95rem;
    }
}

@media (max-width: 991px) {
    :is(.product, .products) .product-item .product-item-inner .product-item-inner-item img {
        height: 240px;
    }
    
    /* Reduce hover lift on tablets */
    :is(.product, .products) .product-item:hover {
        transform: translateY(-4px) scale(1.005);
    }
}

@media (max-width: 767px) {
    :is(.product, .products) .product-item .product-item-inner .product-item-inner-item img {
        height: 200px;
    }
    
    /* Disable hover animations on mobile, use tap */
    :is(.product, .products) .product-item .product-item-add {
        position: static;
        transform: none;
        opacity: 1;
        background: #fff;
        margin-top: -1px;
    }
    
    :is(.product, .products) .product-item .product-item-add .btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    
    /* Stack product info vertically on small screens */
    :is(.product, .products) .product-item .text-center.rounded-bottom {
        padding: 1rem 0.75rem !important;
    }
}

@media (max-width: 575px) {
    :is(.product, .products) .product-item .product-item-inner .product-item-inner-item img {
        height: 180px;
    }
    
    :is(.product, .products) .product-item .product-item-inner .product-item-inner-item .product-new,
    :is(.product, .products) .product-item .product-item-inner .product-item-inner-item .product-sale {
        width: 48px;
        height: 48px;
        line-height: 48px;
        font-size: 11px;
    }
    
    :is(.product, .products) .product-item .text-center.rounded-bottom h4,
    :is(.product, .products) .product-item .text-center.rounded-bottom a.h4 {
        font-size: 0.9rem;
    }
    
    :is(.product, .products) .product-item .text-center.rounded-bottom del {
        font-size: 0.9rem;
    }
    
    :is(.product, .products) .product-item .text-center.rounded-bottom .text-primary.fs-5 {
        font-size: 1rem !important;
    }
}

/* Touch-friendly interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    :is(.product, .products) .product-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    :is(.product, .products) .product-item .product-item-add .btn.btn-primary:active {
        background: #d37700 !important;
    }
}

/* Loading state animation */
:is(.product, .products) .product-item.loading {
    pointer-events: none;
    opacity: 0.6;
    animation: product-loading 1.2s ease-in-out infinite;
}

@keyframes product-loading {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

/* Empty state message */
:is(.product, .products) .row.g-4.empty-state {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #999;
    font-size: 1.1rem;
}

/* Product detail modal enhancements */
#productDetailModal .modal-dialog {
    max-width: 800px;
}

#productDetailModal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

#productDetailModal .modal-body img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

#productDetailModal .modal-body img:hover {
    transform: scale(1.02);
}

#productDetailModal .badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Smooth transitions for all interactive elements */
:is(.product, .products) * {
    -webkit-tap-highlight-color: transparent;
}

/*** End Enhanced Product Card Animations & Responsiveness ***/

/*** Footer Start ***/
.footer {
    background: #2C3E50 !important;
}
.footer .footer-item a {
    line-height: 30px;
    color: #e0e0e0;
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 30px;
    color: #e0e0e0;
}

.footer .footer-item a:hover {
    letter-spacing: 2px;
    color: #f28b00 !important;
}

.footer h4 {
    color: #f28b00 !important;
}

/*** Footer End ***/


/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-primary) !important;
}
/*** copyright end ***/

/*** Authentication Modals Start ***/
.modal-content {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1070;
}

.modal-dialog {
    position: relative;
    z-index: 1060;
}

.modal-body .input-group-text {
    border: 1px solid #dee2e6;
}

.modal-body .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    border-color: var(--bs-primary);
}

.modal-body .input-group-text {
    min-width: 50px;
    justify-content: center;
}

.modal-body .btn-outline-dark:hover,
.modal-body .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.modal-body hr {
    margin: 0;
    border-color: rgba(0,0,0,0.1);
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    opacity: 0;
}

/*** User Activity Indicators Start ***/
/* Online Status Indicator */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background-color: #28a745;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
}

.status-indicator.offline {
    background-color: #6c757d;
    animation: none;
}

.status-indicator.online::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    animation: ripple 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Wishlist Badge */
.btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
}

/* Activity Stats Cards */
.activity-stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.activity-stats-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.activity-stats-card p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Wishlist Item Styling */
.wishlist-item {
    transition: background-color 0.2s ease;
}

.wishlist-item:hover {
    background-color: #f8f9fa;
}

/* Activity Table Row Hover */
.table-hover tbody tr:hover {
    background-color: rgba(242, 139, 0, 0.05);
}

/* Refresh Button Animation */
.btn-refresh {
    transition: transform 0.3s ease;
}

.btn-refresh:hover {
    transform: rotate(180deg);
}

/* Online Users Counter */
.online-counter {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.3);
}

.online-counter .pulse-dot {
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
/*** User Activity Indicators End ***/

/* Modal Z-Index Fix */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

.modal-dialog {
    z-index: 1060 !important;
    margin: 1.75rem auto;
    pointer-events: auto;
}

.modal.show {
    display: block !important;
}

.modal.show .modal-dialog {
    display: block !important;
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* Login Button in Header */
.col-lg-3 .btn-primary {
    white-space: nowrap;
    font-size: 14px;
}

/* Responsive Modal */
@media (max-width: 576px) {
    .modal-body {
        padding: 2rem 1.5rem !important;
    }
    
    .modal-body h3 {
        font-size: 1.5rem;
    }
    
    .modal-body .fa-3x {
        font-size: 2.5em !important;
    }
}
/*** Authentication Modals End ***/

/*** Product Marquee Start ***/
.product-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    padding: 12px 0;
    z-index: 1000 !important;
    margin: 0;
    display: block;
    min-height: 90px;
}

.product-marquee-wrapper::before,
.product-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 1002;
    pointer-events: none;
}

.product-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, rgba(102, 126, 234, 1) 0%, rgba(102, 126, 234, 0) 100%);
}

.product-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, rgba(118, 75, 162, 1) 0%, rgba(118, 75, 162, 0) 100%);
}

.product-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1001;
}

.product-marquee {
    display: flex;
    gap: 40px;
    animation: marquee-scroll 20s linear infinite;
    will-change: transform;
    min-width: 100%;
}

.product-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.marquee-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.marquee-item-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.marquee-item:hover .marquee-item-image {
    transform: scale(1.1);
}

.marquee-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.marquee-item-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 8px;
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(245, 87, 108, 0.3);
}

.marquee-item-name {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marquee-item-price-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.marquee-item-price {
    font-size: 16px;
    font-weight: 800;
    color: #f28b00;
    background: linear-gradient(135deg, #f28b00 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.marquee-item-old-price {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

.marquee-item-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.marquee-item:hover .marquee-item-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .product-marquee-wrapper {
        padding: 10px 0;
    }
    
    .marquee-item {
        min-width: 240px;
        padding: 8px 16px;
        gap: 12px;
    }
    
    .marquee-item-image {
        width: 50px;
        height: 50px;
    }
    
    .marquee-item-name {
        font-size: 12px;
    }
    
    .marquee-item-price {
        font-size: 14px;
    }
    
    .marquee-item-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .product-marquee {
        animation-duration: 30s;
    }
}

@media (max-width: 576px) {
    .product-marquee-wrapper::before,
    .product-marquee-wrapper::after {
        width: 60px;
    }
    
    .marquee-item {
        min-width: 220px;
    }
}
/*** Product Marquee End ***/

/*** WhatsApp Floating Chat Start ***/
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.whatsapp-bubble {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    position: relative;
    animation: whatsapp-pulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.whatsapp-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-bubble:active {
    transform: scale(0.95);
}

.whatsapp-bubble i {
    font-size: 32px;
    color: #fff;
    animation: whatsapp-ring 3s ease-in-out infinite;
}

/* Notification Badge */
.whatsapp-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border: 3px solid #fff;
    animation: notification-bounce 1.5s ease-in-out infinite;
}

/* Floating Text */
.whatsapp-text {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 10px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #25d366;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    right: 80px;
}

.whatsapp-text::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* Chat Window */
.whatsapp-chat-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 360px;
    max-height: 550px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9998;
}

.whatsapp-chat-window.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

/* Chat Header */
.whatsapp-chat-header {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.whatsapp-chat-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    object-fit: cover;
}

.whatsapp-chat-header-info {
    flex: 1;
}

.whatsapp-chat-header-info h5 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.whatsapp-chat-header-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}

.whatsapp-chat-header-online {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid #fff;
    position: absolute;
    right: 55px;
    top: 45px;
    animation: online-pulse 2s ease-in-out infinite;
}

.whatsapp-close-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.whatsapp-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Chat Body */
.whatsapp-chat-body {
    background: #e5ddd5;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 0h100v100H0z" fill="%23e5ddd5"/><path d="M50 0L0 50l50 50 50-50z" fill="%23d9d0c7" opacity="0.1"/></svg>');
    padding: 20px;
    height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whatsapp-chat-body::-webkit-scrollbar {
    width: 6px;
}

.whatsapp-chat-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Messages */
.whatsapp-message {
    max-width: 75%;
    animation: message-slide 0.4s ease;
}

.whatsapp-message.dealer {
    align-self: flex-start;
}

.whatsapp-message-bubble {
    background: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.whatsapp-message.dealer .whatsapp-message-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 0;
    height: 0;
    border-right: 8px solid #fff;
    border-top: 8px solid transparent;
}

.whatsapp-message-bubble p {
    margin: 0;
    font-size: 14px;
    color: #303030;
    line-height: 1.5;
}

.whatsapp-message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

/* Questionnaire */
.whatsapp-questionnaire {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.whatsapp-question-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.whatsapp-question-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}

.whatsapp-question-btn:active {
    transform: translateY(0);
}

.whatsapp-question-btn i {
    font-size: 16px;
}

/* Chat Footer */
.whatsapp-chat-footer {
    background: #f0f0f0;
    padding: 12px;
    text-align: center;
}

.whatsapp-start-chat-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-start-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-start-chat-btn:active {
    transform: translateY(0);
}

.whatsapp-start-chat-btn i {
    font-size: 20px;
}

/* Animations */
@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0.1), 0 0 0 30px rgba(37, 211, 102, 0.05);
    }
}

@keyframes whatsapp-ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-15deg);
    }
    20%, 40% {
        transform: rotate(15deg);
    }
}

@keyframes notification-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes online-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes message-slide {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-bubble {
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-bubble i {
        font-size: 28px;
    }
    
    .whatsapp-chat-window {
        right: 20px;
        bottom: 95px;
        width: calc(100vw - 40px);
        max-width: 360px;
    }
    
    .whatsapp-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-chat-window {
        width: calc(100vw - 30px);
        right: 15px;
        bottom: 90px;
        max-height: 500px;
    }
    
    .whatsapp-chat-body {
        height: 340px;
    }
}
/*** WhatsApp Floating Chat End ***/

/*** Currency Switcher Start ***/
.currency-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    margin-right: 15px;
}

.currency-btn {
    padding: 6px 14px;
    border: 2px solid transparent;
    background: transparent;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.currency-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.currency-btn.active {
    background: #fff;
    color: var(--bs-primary);
    border-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.currency-btn i {
    font-size: 12px;
}

/* Currency Notification */
.currency-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    display: flex;
    align-items: center;
    font-weight: 500;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.currency-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.currency-notification i {
    margin-right: 8px;
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .currency-switcher {
        margin: 10px;
        padding: 6px 10px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .currency-btn {
        color: var(--bs-primary);
        font-size: 13px;
        padding: 5px 12px;
    }
    
    .currency-btn:hover {
        background: rgba(37, 117, 252, 0.1);
    }
    
    .currency-btn.active {
        background: var(--bs-primary);
        color: #fff;
    }
    
    .currency-notification {
        top: 80px;
        right: 10px;
        left: 10px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .currency-switcher {
        width: calc(100% - 20px);
        margin: 10px;
        justify-content: center;
    }
    
    .currency-btn {
        flex: 1;
        justify-content: center;
    }
}
/*** Currency Switcher End ***/

/* ===================================
   IMPROVED DROPDOWN STYLING
   =================================== */

/* General dropdown improvements */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 8px;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--bs-primary);
    color: #ffffff;
    padding-left: 25px;
}

.dropdown-item:active {
    background: var(--bs-primary);
    color: #ffffff;
}

/* Dropdown toggle styling */
.dropdown-toggle::after {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Category dropdown specific improvements */
.nav-item.dropdown .dropdown-menu {
    min-width: 220px;
}

/* Mobile category dropdown */
@media (max-width: 991px) {
    .nav-item.dropdown .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
        margin: 10px 0;
        background: #f8f9fa;
    }
    
    .nav-item.dropdown .categories-bars-item {
        background: transparent;
    }
}