body {
    font-family: 'Outfit', sans-serif;
    background-color: #0B1120;
    color: #f8fafc;
    overflow-x: hidden;
}

/* Background Glow Effects */
.bg-glow-1 {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    z-index: -1;
    animation: blob 20s infinite alternate;
}

.bg-glow-2 {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    z-index: -1;
    animation: blob 20s infinite alternate-reverse;
}

.glass-nav {
    background: rgba(11, 17, 32, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(45, 212, 191, 0.3);
    box-shadow: 0 20px 40px -12px rgba(45, 212, 191, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #2dd4bf 0%, #3b82f6 50%, #a855f7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient 5s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0B1120;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    animation: float 3s ease-in-out infinite;
}

/* Toast Notification */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: rgba(20, 184, 166, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 120;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

#toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

/* Loading Screen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0B1120;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s;
    backdrop-filter: blur(5px);
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Stylish Spinner */
.spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    background: transparent;
    border: 3px solid rgba(45, 212, 191, 0.1);
}

.spinner::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #2dd4bf;
    border-bottom-color: #a855f7;
    animation: spin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.4), 0 0 15px rgba(168, 85, 247, 0.4);
}

.spinner::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-left-color: #3b82f6;
    border-right-color: #2dd4bf;
    animation: spin-reverse 2s linear infinite;
}

.loader-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* --- Search Bar Styles --- */
.search-container {
    position: relative;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-left {
    position: absolute;
    left: 1.5rem;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-glass {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Home Page Big Search */
.search-input-lg {
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    font-size: 1.125rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.search-input-lg:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #2dd4bf;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.2), 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    outline: none;
}

.search-input-lg:focus+.search-icon-left {
    color: #2dd4bf;
}

/* Header Compact Search */
.search-input-sm {
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    font-size: 0.875rem;
    border-radius: 9999px;
}

.search-nav-wrapper .search-icon-left {
    left: 1rem;
    font-size: 0.875rem;
}

.search-input-sm:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #2dd4bf;
    outline: none;
    width: 250px;
    /* Expand effect */
}

/* Placeholder Styling */
::placeholder {
    color: #64748b;
}

/* Search Input Reset */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

/* --- Search Suggestions Autocomplete --- */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-top: 8px;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    max-height: 400px;
    overflow-y: auto;
    animation: fade-in-up 0.2s ease-out forwards;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.suggestion-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.suggestion-info h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.suggestion-info p {
    color: #94a3b8;
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggestion-category {
    font-size: 0.7rem;
    color: #2dd4bf;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* Scrollbar for suggestions */
.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: transparent;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
