/* Custom Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: #f1f1f1;
}

/* Swiper Customization */
.swiper-button-next,
.swiper-button-prev {
    color: #f9c35a !important;
    background: white;
    width: 40px !important;
    height: 40px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px !important;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: #f9c35a !important;
    opacity: 0.3 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
}

/* Product Card Hover Effects */
.product-card {
    transition: none;
    border-radius: 0;
    box-shadow: none;
}

.product-card img {
    transition: none;
    object-fit: cover;
    object-position: center;
}

/* Ensure 5:4 aspect ratio for product images */
.product-card .aspect-square {
    aspect-ratio: 5 / 4;
}

/* Product card title - single line with ellipsis */
.product-card h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Global Button and Input Styles - Remove Border Radius and Shadows */
button, 
input, 
select, 
textarea,
.btn,
.btn-primary,
.btn-secondary {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Search input rounded corners */
#search-input,
#mobile-search-input {
    border-radius: 0.5rem !important;
}

/* Header specific styles */
.border-primary-light {
    border-color: rgba(249, 195, 90, 0.3) !important;
}

/* Header navigation styles */
nav[bg-white] .search-container input {
    border: 1px solid #d1d5db !important;
}

nav[bg-white] .search-container input:focus {
    border-color: #f9c35a !important;
    box-shadow: 0 0 0 2px rgba(249, 195, 90, 0.1) !important;
}

/* Button Hover Effects - Theme Color */
.btn-primary {
    background: #f9c35a;
    color: white;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background: #e6b045;
}

.btn-secondary {
    border: 1px solid #f9c35a;
    color: #f9c35a;
    background: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f9c35a;
    color: white;
}

/* Primary Button Hover */
button.bg-primary:hover {
    background: #e6b045 !important;
}

/* Form Input Styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    border-radius: 0 !important;
    box-shadow: none !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #f9c35a !important;
    box-shadow: 0 0 0 2px rgba(249, 195, 90, 0.1) !important;
    outline: none !important;
}

/* Additional Button Hover States */
button:hover,
.btn:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Specific Button Classes */
.rounded-lg,
.rounded,
.rounded-md,
.rounded-sm {
    border-radius: 0 !important;
}

/* Remove shadows from all elements */
.shadow,
.shadow-lg,
.shadow-md,
.shadow-sm {
    box-shadow: none !important;
}

/* Hover effects for common button patterns */
button.bg-gray-900:hover {
    background: #1f2937 !important;
}

button.bg-red-700:hover {
    background: #dc2626 !important;
}

/* Form input focus states */
.form-input:focus {
    border-color: #f9c35a !important;
    box-shadow: 0 0 0 2px rgba(249, 195, 90, 0.1) !important;
}

/* Cart Drawer Animation */
#cart-drawer.show #cart-content {
    transform: translateX(0);
}

/* Mobile Navigation */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.show {
    transform: translateX(0);
}

/* Toast Animation */
.toast-show {
    transform: translateX(0) !important;
}

/* Global Toast Style - differentiate from primary theme color */
#toast {
    background-color: #111827 !important; /* gray-900 */
    color: #ffffff !important;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    /* animation: fadeIn 0.6s ease-out; */
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #f9c35a;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Styles */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: #f9c35a;
    box-shadow: 0 0 0 3px rgba(249, 195, 90, 0.1);
}

/* Quantity Selector */
.quantity-selector {
    display: inline-block;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-selector button {
    background: #f9fafb;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-selector button:hover {
    background: #e5e7eb;
}

.quantity-selector input {
    border: none;
    text-align: center;
    width: 60px;
    padding: 8px 4px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    /* Mobile product list spacing */
    .grid-view #products-grid {
        gap: 0.75rem !important;
    }
    
    .list-view #products-grid {
        gap: 0.5rem !important;
    }
    
    /* Mobile product card adjustments */
    .product-card {
        margin-bottom: 0.75rem;
    }
    
    /* Mobile grid view card padding and spacing */
    .grid-view .product-card .p-3 {
        padding: 0.5rem !important;
    }
    
    .grid-view .product-card h3 {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.125rem !important;
    }
    
    .grid-view .product-card .flex.items-center.mb-2 {
        margin-bottom: 0.125rem !important;
    }
    
    .grid-view .product-card .flex.items-center.justify-between.mb-2 {
        margin-bottom: 0.125rem !important;
    }
    
    .grid-view .product-card .text-base {
        font-size: 0.75rem !important;
    }
    
    .grid-view .product-card .text-xs {
        font-size: 0.625rem !important;
    }
    
    .grid-view .product-card button {
        padding: 0.125rem 0.375rem !important;
        font-size: 0.625rem !important;
    }
    
    /* Mobile list view card padding and spacing */
    .list-view .product-card .p-4 {
        padding: 0.125rem !important;
    }
    
    .list-view .product-card h3 {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.125rem !important;
    }
    
    .list-view .product-card .flex.items-center.mb-2 {
        margin-bottom: 0.125rem !important;
    }
    
    .list-view .product-card .text-gray-600.mb-2 {
        font-size: 0.625rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.125rem !important;
    }
    
    .list-view .product-card .text-lg {
        font-size: 0.75rem !important;
    }
    
    .list-view .product-card .text-sm {
        font-size: 0.625rem !important;
    }
    
    .list-view .product-card button {
        padding: 0.125rem 0.375rem !important;
        font-size: 0.625rem !important;
    }
    
    /* Mobile wishlist button sizing */
    .wishlist-btn {
        width: 1.5rem !important;
        height: 1.5rem !important;
        top: 0.25rem !important;
        right: 0.25rem !important;
    }
    
    .wishlist-btn i {
        font-size: 0.625rem !important;
    }
    
    /* Mobile wishlist page spacing */
    .wishlist-item {
        margin-bottom: 0.5rem !important;
    }
    
    .wishlist-item .mt-2 {
        margin-top: 0.25rem !important;
        padding: 0 0.5rem !important;
    }
    
    .wishlist-item button {
        font-size: 0.625rem !important;
        padding: 0.125rem 0.25rem !important;
    }
    
    /* Mobile swiper product cards spacing */
    .swiper-slide .product-card {
        margin-bottom: 0.75rem !important;
    }
    
    .swiper-slide .product-card .p-3 {
        padding: 0.5rem !important;
    }
    
    .swiper-slide .product-card h3 {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.25rem !important;
    }
    
    .swiper-slide .product-card .flex.items-center.mb-2 {
        margin-bottom: 0.25rem !important;
    }
    
    .swiper-slide .product-card .flex.items-center.justify-between.mb-2 {
        margin-bottom: 0.25rem !important;
    }
    
    .swiper-slide .product-card .text-base {
        font-size: 0.75rem !important;
    }
    
    .swiper-slide .product-card .text-xs {
        font-size: 0.625rem !important;
    }
    
    .swiper-slide .product-card button {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.625rem !important;
    }
    
    .swiper-slide .wishlist-btn {
        width: 1.5rem !important;
        height: 1.5rem !important;
        top: 0.25rem !important;
        right: 0.25rem !important;
    }
    
    .swiper-slide .wishlist-btn i {
        font-size: 0.625rem !important;
    }
    
    /* Mobile related products spacing */
    .related-products-swiper .swiper-slide .product-card {
        margin-bottom: 0.75rem !important;
    }
    
    .related-products-swiper .swiper-slide .product-card .p-3 {
        padding: 0.5rem !important;
    }
    
    .related-products-swiper .swiper-slide .product-card h3 {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.25rem !important;
    }
    
    .related-products-swiper .swiper-slide .product-card .flex.items-center.mb-2 {
        margin-bottom: 0.25rem !important;
    }
    
    .related-products-swiper .swiper-slide .product-card .flex.items-center.justify-between.mb-2 {
        margin-bottom: 0.25rem !important;
    }
    
    .related-products-swiper .swiper-slide .product-card .text-base {
        font-size: 0.75rem !important;
    }
    
    .related-products-swiper .swiper-slide .product-card .text-xs {
        font-size: 0.625rem !important;
    }
    
    .related-products-swiper .swiper-slide .product-card button {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.625rem !important;
    }
    
    .related-products-swiper .swiper-slide .wishlist-btn {
        width: 1.5rem !important;
        height: 1.5rem !important;
        top: 0.25rem !important;
        right: 0.25rem !important;
    }
    
    .related-products-swiper .swiper-slide .wishlist-btn i {
        font-size: 0.625rem !important;
    }
    
    /* Mobile product list spacing for all containers */
    
    /* Homepage coupon section */
    .grid.gap-6 {
        gap: 0.75rem !important;
    }
    
    /* Shop page product grid */
    #products-grid {
        gap: 0.75rem !important;
    }
    
    /* Wishlist page spacing */
    .space-y-6 {
        gap: 0.75rem !important;
    }
    
    /* Product detail page spacing */
    .grid.gap-12 {
        gap: 1rem !important;
    }
    
    .space-y-4 {
        gap: 0.5rem !important;
    }
    
    /* Swiper spacing adjustments */
    .swiper-slide {
        margin-right: 0.5rem !important;
    }
    
    /* Mobile swiper spacing overrides */
    .new-products-swiper .swiper-slide,
    .popular-products-swiper .swiper-slide,
    .related-products-swiper .swiper-slide {
        margin-right: 0.5rem !important;
    }

    .banner-swiper .swiper-slide {
        margin-right: 0rem !important;
    }
    
    /* Additional mobile spacing for specific containers */
    .coupon-item {
        margin-bottom: 0.5rem;
    }
    
    /* Mobile form spacing */
    .space-y-8 {
        gap: 1rem !important;
    }
    
    .space-y-2 {
        gap: 0.25rem !important;
    }
    
    /* Mobile section spacing adjustments */
    .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .py-12 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Mobile margin adjustments for sections */
    .mb-12 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-16 {
        margin-bottom: 2rem !important;
    }
    
    .mb-8 {
        margin-bottom: 1rem !important;
    }
    
    /* Mobile page-specific section spacing */
    
    /* Shop page section spacing */
    .shop-page .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Product detail page section spacing */
    .product-page .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .product-page .mb-16 {
        margin-bottom: 2rem !important;
    }
    
    /* Wishlist page section spacing */
    .wishlist-page .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* About page section spacing */
    .about-page .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Contact page section spacing */
    .contact-page .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Checkout page section spacing */
    .checkout-page .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Order success page section spacing */
    .order-success-page .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Terms, Privacy, Returns pages section spacing */
    .legal-page .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Mobile wishlist list-view optimizations */
    .wishlist-item {
        margin-bottom: 0.75rem !important;
    }
    
    .wishlist-item .product-card {
        margin-bottom: 0 !important;
    }
    
    /* Mobile wishlist image sizing - 5:4 ratio */
    .wishlist-item .product-card .aspect-square {
        height: 80px !important;
        width: 100px !important;
    }
    
    /* Mobile wishlist content width optimization */
    .wishlist-item .product-card .flex-1 {
        min-width: 0 !important;
        flex: 1 1 0% !important;
    }
    
    /* Mobile wishlist list-view specific adjustments */
    .wishlist-item .product-card .flex {
        flex-direction: row !important;
        /* align-items: stretch !important; */
    }
    
    .wishlist-item .product-card .relative {
        flex-shrink: 0 !important;
        margin: auto 0;
    }
    
    .wishlist-item .product-card .relative .discount-badge {
        display: none;
    }
    
    .wishlist-item .product-card .flex-1 {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: 0.5rem !important;
    }
    
    /* Mobile wishlist text sizing */
    .wishlist-item .product-card h3 {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.125rem !important;
    }
    
    .wishlist-item .product-card .text-gray-600 {
        font-size: 0.625rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.125rem !important;
    }
    
    .wishlist-item .product-card .text-lg {
        font-size: 0.75rem !important;
    }
    
    .wishlist-item .product-card .text-sm {
        font-size: 0.625rem !important;
    }
    
    /* Mobile wishlist button sizing */
    .wishlist-item .product-card button {
        padding: 0.125rem 0.375rem !important;
        font-size: 0.625rem !important;
    }
    
    .wishlist-item .product-card .wishlist-btn,
    .wishlist-item .product-card .delete-btn {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
    
    .wishlist-item .product-card .wishlist-btn i,
    .wishlist-item .product-card .delete-btn i {
        font-size: 0.625rem !important;
    }
    
    /* Mobile delete button styling */
    .wishlist-item .product-card .delete-btn {
        background-color: #ef4444 !important;
        /* border-radius: 50% !important; */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Grid Layout Toggle */
.grid-view .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.list-view .product-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-view .product-card {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.list-view .product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #f9c35a;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.625rem;
    font-weight: 600;
    z-index: 10;
}

/* Wishlist Heart Animation */
.wishlist-btn {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
}

.wishlist-btn.active {
    color: #f9c35a;
    transform: scale(1.1);
}

/* Search Bar */
.search-container {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.search-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.search-suggestion-item:hover {
    background: #f9fafb;
}

.search-suggestion-item.bg-primary {
    background: #f9c35a !important;
    color: white !important;
}

.search-suggestion-item.bg-primary:hover {
    background: #f3b844 !important;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-suggestion-item .break-words {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Popular searches and history styles */
.search-suggestions .text-xs {
    font-size: 0.75rem;
}

.search-suggestions .uppercase {
    text-transform: uppercase;
}

.search-suggestions .tracking-wider {
    letter-spacing: 0.05em;
}

/* Loading state for search suggestions */
.search-suggestions.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #f9c35a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.line-through {
    font-size: 0.65rem;
}

/* Lazy Image Styles */
.lazy-image-placeholder,
.lazy-image-error {
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
}

.loading-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #9ca3af;
    font-size: 1.5rem;
}

.error-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lazy-image-error {
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Fade in animation for loaded images */
lazy-image img {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments for lazy images */
.lazy-image-placeholder img,
.lazy-image-error img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Performance optimizations */
lazy-image {
    contain: layout style paint;
}

/* Page Loading Animations */
.page-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.page-loader-content {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 200px;
    max-width: 300px;
}

.loader-animation {
    margin-bottom: 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-message {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    font-weight: 500;
}

.loader-progress {
    width: 100%;
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f9c35a, #f3b844);
    border-radius: 2px;
    animation: progressShimmer 2s ease-in-out infinite;
}

/* Default Loader */
.default-loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner-ring {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #f9c35a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.spinner-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

.spinner-dots span {
    width: 6px;
    height: 6px;
    background: #f9c35a;
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite both;
}

.spinner-dots span:nth-child(1) { animation-delay: -0.32s; }
.spinner-dots span:nth-child(2) { animation-delay: -0.16s; }

/* Search Loader */
.search-loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.search-icon {
    font-size: 2rem;
    color: #f9c35a;
    animation: searchBounce 1s ease-in-out infinite;
}

.search-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid #f9c35a;
    border-radius: 50%;
    animation: searchPulse 2s ease-in-out infinite;
}

/* Cart Loader */
.cart-loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.cart-icon {
    font-size: 2rem;
    color: #f9c35a;
}

.cart-bounce {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 4px;
    background: #f9c35a;
    border-radius: 2px;
    animation: cartBounce 0.6s ease-in-out infinite;
}

/* Checkout Loader */
.checkout-loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.checkout-icon {
    font-size: 2rem;
    color: #f9c35a;
}

.checkout-rotate {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-top: 2px solid #f9c35a;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

/* Page Content Animations */
.fade-in-page {
    animation: fadeInUp 0.6s ease-out;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Product Card Animations */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: none;
    box-shadow: none;
}

.product-card.fade-in {
    animation: cardFadeIn 0.5s ease-out;
}

/* Keyframe Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes searchBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes searchPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

@keyframes cartBounce {
    0%, 100% { transform: translateX(-50%) scaleX(1); }
    50% { transform: translateX(-50%) scaleX(1.2); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-loader-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .loader-animation {
        height: 50px;
    }
    
    .default-loader,
    .search-loader,
    .cart-loader,
    .checkout-loader {
        width: 50px;
        height: 50px;
    }
}

/* Error Notification Styles */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    border: 1px solid;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    font-size: 0.875rem;
}

.error-content {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
}

.error-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.error-message {
    flex: 1;
    line-height: 1.5;
}

.error-message p {
    margin: 0;
    margin-bottom: 0.5rem;
}

.error-action {
    background: none;
    border: none;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
    font-weight: 500;
}

.error-action:hover {
    opacity: 0.8;
}

.error-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.error-close:hover {
    opacity: 1;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Network Status Styles */
.network-status {
    animation: slideInLeft 0.3s ease-out;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .error-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .error-content {
        padding: 0.75rem;
    }
}