/* ===================================
   Enhanced Sticky Header - Modern & Cool Design
   =================================== */

/* Hide main navbar logo when sticky header is visible (home page) */
/* Hide navbar logo on desktop when sticky header exists (has its own logo) */
@media (min-width: 992px) {
    body:has(#heroSearchBoxSticky) .navbar-brand,
    body:has(#heroSearchBoxSticky) .navbar-brand img {
        display: none !important;
    }
}

/* Show navbar logo on mobile even with sticky header */
@media (max-width: 991px) {
    body:has(#heroSearchBoxSticky) .navbar-brand {
        display: flex !important;
    }
    
    body:has(#heroSearchBoxSticky) .navbar-brand img {
        display: block !important;
    }
}

/* Sticky Header Container - Glassmorphism Effect */
.hero-search-box-sticky {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(59, 157, 213, 0.1);
    border-bottom: 1px solid rgba(59, 157, 213, 0.15);
    padding: 1rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-search-box-sticky.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(59, 157, 213, 0.15);
    border-bottom: 1px solid rgba(59, 157, 213, 0.2);
    padding: 0.75rem 0;
}

.hero-search-box-sticky .container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    flex-wrap: nowrap;
}

/* Sticky Header Logo - Enhanced with Animation */
.sticky-header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 1rem;
    padding: 0.25rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    max-width: 160px;
}

.sticky-header-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 157, 213, 0.1) 0%, rgba(123, 192, 67, 0.1) 100%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.sticky-header-logo:hover::before {
    left: 0;
}

.sticky-header-logo:hover {
    transform: translateY(-2px) scale(1.03);
}

.sticky-header-logo .logo-img {
    height: 50px;
    width: auto;
    max-width: 160px;
    min-width: 100px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
    position: relative;
    z-index: 1;
}

.sticky-header-logo:hover .logo-img {
    filter: drop-shadow(0 4px 12px rgba(59, 157, 213, 0.3));
    transform: scale(1.05);
}

/* Mobile Search Toggle Button - Modern Design */
.mobile-search-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3B9DD5 0%, #7BC043 100%);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 157, 213, 0.3), 0 2px 6px rgba(123, 192, 67, 0.2);
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mobile-search-toggle::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.4s, height 0.4s;
}

.mobile-search-toggle:hover::before {
    width: 200%;
    height: 200%;
}

.mobile-search-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 157, 213, 0.4), 0 4px 10px rgba(123, 192, 67, 0.3);
}

.mobile-search-toggle:active {
    transform: translateY(0) scale(0.98);
}

.mobile-search-toggle.active {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.mobile-search-toggle i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.mobile-search-toggle:hover i {
    transform: scale(1.1);
}

/* Header Action Buttons - Modern & Cool Design */
.hero-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-action-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--white);
    border: 2px solid rgba(59, 157, 213, 0.2);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0;
    margin: 0;
}

.header-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 157, 213, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.header-action-btn:hover::before {
    width: 200%;
    height: 200%;
}

.header-action-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 157, 213, 0.2), 0 3px 10px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 157, 213, 0.4);
}

.header-action-btn:hover i {
    transform: scale(1.15);
}

.header-action-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Cart Action Button - Special Gradient */
.cart-action-btn {
    background: linear-gradient(135deg, rgba(59, 157, 213, 0.1) 0%, rgba(123, 192, 67, 0.1) 100%);
    border-color: rgba(59, 157, 213, 0.3);
    color: #3B9DD5;
}

.cart-action-btn::before {
    background: linear-gradient(135deg, rgba(59, 157, 213, 0.2) 0%, rgba(123, 192, 67, 0.2) 100%);
}

.cart-action-btn:hover {
    background: linear-gradient(135deg, #3B9DD5 0%, #7BC043 100%);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(59, 157, 213, 0.35), 0 4px 12px rgba(123, 192, 67, 0.25);
}

/* Wishlist Action Button - Pink Theme */
.wishlist-action-btn {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(219, 39, 119, 0.1) 100%);
    border-color: rgba(236, 72, 153, 0.3);
    color: #ec4899;
}

.wishlist-action-btn::before {
    background: rgba(236, 72, 153, 0.2);
}

.wishlist-action-btn:hover {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35), 0 4px 12px rgba(219, 39, 119, 0.25);
}

/* Filter Action Button - Gray Theme */
.filter-action-btn {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.1) 0%, rgba(75, 85, 99, 0.1) 100%);
    border-color: rgba(107, 114, 128, 0.3);
    color: #6b7280;
}

.filter-action-btn::before {
    background: rgba(59, 157, 213, 0.2);
}

.filter-action-btn:hover {
    background: linear-gradient(135deg, #3B9DD5 0%, #7BC043 100%);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(59, 157, 213, 0.35), 0 4px 12px rgba(123, 192, 67, 0.25);
}

/* Action Badge - Enhanced Design */
.action-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--white);
    border-radius: 12px;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0 5px;
    border: 2.5px solid var(--white);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.4), 0 1px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: pulse-badge 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.action-badge:empty {
    display: none;
}

.action-badge.show {
    animation: badge-pop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes badge-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Search Button Icon (for mobile) */
.search-btn-icon {
    display: none;
}

/* Desktop: Show search box, hide mobile toggle */
.hero-search-box {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

/* Mobile Back Button */
.mobile-search-back-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(59, 157, 213, 0.1);
    border: 2px solid rgba(59, 157, 213, 0.2);
    color: #3B9DD5;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 0.75rem;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.mobile-search-back-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 157, 213, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.mobile-search-back-btn:hover::before {
    width: 200%;
    height: 200%;
}

.mobile-search-back-btn:hover {
    background: rgba(59, 157, 213, 0.2);
    border-color: rgba(59, 157, 213, 0.4);
    transform: translateX(-2px);
}

.mobile-search-back-btn:active {
    transform: translateX(0);
}

.mobile-search-back-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.mobile-search-back-btn:hover i {
    transform: scale(1.1);
}

/* Mobile Responsive - Enhanced Layout */
@media (max-width: 768px) {
    /* Sticky header container */
    .hero-search-box-sticky {
        padding: 0.75rem 0;
        backdrop-filter: blur(15px) saturate(180%);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .hero-search-box-sticky.scrolled {
        padding: 0.625rem 0;
    }
    
    .hero-search-box-sticky.search-expanded {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }
    
    .hero-search-box-sticky .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0 0.75rem;
        flex-wrap: nowrap;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Logo - Reduced size for better space */
    .sticky-header-logo {
        margin-right: 0.5rem;
        order: 1;
        flex-shrink: 0;
        padding: 0.15rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-width: 100px;
    }
    
    .hero-search-box-sticky.search-expanded .sticky-header-logo {
        opacity: 0;
        width: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        max-width: 0;
    }
    
    .sticky-header-logo .logo-img {
        height: 38px;
        max-width: 100px;
        min-width: 80px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Hide mobile search toggle - not needed anymore */
    .mobile-search-toggle {
        display: none !important;
    }
    
    /* Search box - Always visible inline on mobile */
    .hero-search-box {
        display: flex;
        flex: 1;
        min-width: 0;
        order: 2;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-width: calc(100% - 120px); /* Reserve space for logo and actions */
    }
    
    /* Advanced search container - inline by default */
    .hero-search-box-sticky .advanced-search-container {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border: 1.5px solid rgba(59, 157, 213, 0.15);
        border-radius: 50px;
        padding: 0.25rem 0.4rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        flex: 1;
        min-width: 0;
    }
    
    /* Expanded state - full width */
    .hero-search-box-sticky .advanced-search-container.expanded {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        padding: 0.5rem 0.75rem;
        z-index: 1001;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px) saturate(180%);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
        border: none;
        border-bottom: 1px solid rgba(59, 157, 213, 0.15);
        animation: expandSearch 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0.4rem;
    }
    
    @keyframes expandSearch {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Search input wrapper */
    .hero-search-box-sticky .search-input-wrapper {
        flex: 1;
        min-width: 0;
        position: relative;
        display: flex;
        align-items: center;
        margin-right: 0.25rem;
    }
    
    /* Search input - compact by default */
    .hero-search-box-sticky .hero-search-input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 0.3rem 0.4rem;
        font-size: 0.8rem;
        outline: none;
        color: #1e293b;
        min-width: 0;
        width: 100%;
    }
    
    .hero-search-box-sticky .hero-search-input::placeholder {
        color: #94a3b8;
        font-size: 0.75rem;
    }
    
    /* Expanded input */
    .hero-search-box-sticky .advanced-search-container.expanded .hero-search-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Search button - compact on mobile */
    .hero-search-box-sticky .hero-search-btn {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 32px;
        font-size: 0.85rem;
    }
    
    .hero-search-box-sticky .advanced-search-container.expanded .hero-search-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    /* Hide search button text on mobile */
    .hero-search-box-sticky .search-btn-text {
        display: none;
    }
    
    /* Show search icon in button on mobile */
    .hero-search-box-sticky .search-btn-icon {
        display: inline-block;
        font-size: 1.1rem;
    }
    
    /* Clear button */
    .hero-search-box-sticky .search-clear-btn {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: rgba(107, 114, 128, 0.1);
        border: none;
        color: #6b7280;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        flex-shrink: 0;
        margin-right: 0.4rem;
        font-size: 0.8rem;
    }
    
    .hero-search-box-sticky .search-clear-btn:hover {
        background: rgba(107, 114, 128, 0.2);
        color: #374151;
    }
    
    /* Header actions - Keep visible inline */
    .hero-header-actions {
        display: flex;
        gap: 0.4rem;
        order: 3;
        flex-shrink: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Hide header actions when search is expanded */
    .hero-header-actions.mobile-hidden {
        opacity: 0;
        width: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        gap: 0;
    }
    
    /* Make header actions slightly smaller on mobile */
    .header-action-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    /* Hide filter text on mobile */
    .filter-btn-text {
        display: none;
    }
    
    /* Adjust action badge size */
    .action-badge {
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
        top: -4px;
        right: -4px;
        border-width: 2px;
    }
    
    /* Hide cart icon on mobile (use floating cart button instead) */
    .cart-action-btn {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .hero-search-box-sticky {
        padding: 0.625rem 0;
    }
    
    .hero-search-box-sticky.scrolled {
        padding: 0.5rem 0;
    }
    
    .hero-search-box-sticky .container {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }
    
    /* Logo - Still visible and good size */
    .sticky-header-logo {
        margin-right: 0.5rem;
        padding: 0.25rem;
    }
    
    .sticky-header-logo .logo-img {
        height: 40px;
        max-width: 140px;
        min-width: 100px;
    }
    
    .header-action-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .action-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: -3px;
        right: -3px;
        border-width: 2px;
    }
    
    /* Search container on small mobile */
    .hero-search-box-sticky .advanced-search-container {
        padding: 0.4rem 0.6rem;
        gap: 0.4rem;
    }
    
    .hero-search-box-sticky .advanced-search-container.expanded {
        padding: 0.625rem 0.875rem;
    }
    
    .hero-search-box-sticky .hero-search-input {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .hero-search-box-sticky .advanced-search-container.expanded .hero-search-input {
        font-size: 0.95rem;
        padding: 0.625rem 0.875rem;
    }
    
    .hero-search-box-sticky .hero-search-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    .hero-search-box-sticky .advanced-search-container.expanded .hero-search-btn {
        width: 40px;
        height: 40px;
    }
    
    .mobile-search-back-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        margin-right: 0.4rem;
    }
    
    .hero-search-box-sticky .search-clear-btn {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
        margin-right: 0.3rem;
    }
    
    .hero-search-box-sticky .advanced-search-container {
        padding: 0.25rem 0.35rem;
        gap: 0.25rem;
    }
    
    .hero-search-box-sticky .advanced-search-container.expanded {
        padding: 0.45rem 0.65rem;
    }
    
    .hero-search-box-sticky .hero-search-input {
        padding: 0.3rem 0.35rem;
        font-size: 0.75rem;
    }
    
    .hero-search-box-sticky .advanced-search-container.expanded .hero-search-input {
        padding: 0.45rem 0.65rem;
        font-size: 0.85rem;
    }
    
    .hero-search-box-sticky .hero-search-btn {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.8rem;
    }
    
    .hero-search-box-sticky .advanced-search-container.expanded .hero-search-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }
    
    .sticky-header-logo {
        max-width: 90px;
        margin-right: 0.4rem;
    }
    
    .sticky-header-logo .logo-img {
        height: 35px;
        max-width: 90px;
        min-width: 0px;
    }
    
    .header-action-btn {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
}

/* Smooth transitions */
.hero-search-box,
.hero-header-actions,
.sticky-header-logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced focus state for search input */
.hero-search-box-sticky .hero-search-input:focus {
    outline: none;
}

.hero-search-box-sticky .advanced-search-container:focus-within {
    border-color: rgba(59, 157, 213, 0.4);
    box-shadow: 0 4px 16px rgba(59, 157, 213, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero-search-box-sticky .advanced-search-container.expanded:focus-within {
    box-shadow: 0 8px 32px rgba(59, 157, 213, 0.25);
}

/* Search Box Enhancement in Sticky Header */
.hero-search-box-sticky .hero-search-box {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    display: flex;
}

.hero-search-box-sticky .search-input-wrapper {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-search-box-sticky .hero-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
    outline: none;
    color: #1e293b;
    width: 100%;
}

.hero-search-box-sticky .advanced-search-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(59, 157, 213, 0.15);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.35rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-search-box-sticky .advanced-search-container:focus-within {
    border-color: rgba(59, 157, 213, 0.4);
    box-shadow: 0 4px 16px rgba(59, 157, 213, 0.18), 0 2px 6px rgba(123, 192, 67, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.hero-search-box-sticky .hero-search-btn {
    background: linear-gradient(135deg, #3B9DD5 0%, #7BC043 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(59, 157, 213, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    white-space: nowrap;
}

.hero-search-box-sticky .hero-search-btn::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.4s, height 0.4s;
}

.hero-search-box-sticky .hero-search-btn:hover::before {
    width: 300%;
    height: 300%;
}

.hero-search-box-sticky .hero-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 157, 213, 0.4), 0 4px 12px rgba(123, 192, 67, 0.3);
}

.hero-search-box-sticky .hero-search-btn:active {
    transform: translateY(0);
}

/* Hide floating buttons on home page */
.home-page .floating-cart-btn,
.home-page .floating-wishlist-btn,
.floating-wishlist-btn.home-page-hidden {
    display: none !important;
}

/* Ensure cart badge displays properly */
#headerCartBadge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

#headerCartBadge span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

#headerCartBadge #cartCount {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 4px;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

#headerCartBadge i {
    font-size: 1.2rem;
}
