/* ============================================================
   الزهراء مول - تحسينات التصميم الأصلي
   ============================================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Animation Timings */
    --anim-fast: 0.15s;
    --anim-normal: 0.3s;
    --anim-slow: 0.5s;
    
    /* Cubic Bezier */
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ==================== SKELETON LOADING ==================== */
.skeleton-loader {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, 
        var(--gray-200) 25%, 
        var(--gray-100) 50%, 
        var(--gray-200) 75%
    );
    background-size: 400% 100%;
    animation: skeleton-wave 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-wave {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-image {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-text.long { width: 100%; }

.skeleton-price {
    height: 1.5rem;
    width: 40%;
    border-radius: var(--radius-sm);
}

/* Skeleton Card */
.product-card-skeleton {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow);
}

/* ==================== ENHANCED PRODUCT CARDS ==================== */
.product-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--anim-normal) var(--ease-smooth);
    box-shadow: var(--shadow);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(var(--primary-rgb), 0.15);
    border-color: var(--primary-light);
}

/* Product Image */
.product-card .product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--gray-100);
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--anim-slow) var(--ease-smooth);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Product Actions - Enhanced */
.product-card .product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: all var(--anim-normal) var(--ease-smooth);
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-action-btn {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    background: var(--white);
    border: none;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--anim-normal) var(--ease-bounce);
    box-shadow: var(--shadow-md);
    transform: translateY(20px);
    opacity: 0;
}

.product-card:hover .product-action-btn {
    transform: translateY(0);
    opacity: 1;
}

.product-card:hover .product-action-btn:nth-child(1) { transition-delay: 0s; }
.product-card:hover .product-action-btn:nth-child(2) { transition-delay: 0.05s; }
.product-card:hover .product-action-btn:nth-child(3) { transition-delay: 0.1s; }

.product-action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.15) !important;
}

.product-action-btn.in-cart {
    background: var(--success);
    color: white;
}

.product-action-btn.in-wishlist {
    background: var(--danger);
    color: white;
}

/* Product Badges - Enhanced */
.product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

.product-badge {
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
    animation: badge-pop 0.3s var(--ease-bounce);
}

@keyframes badge-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.badge-new {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.badge-sale {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.badge-bestseller {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--secondary);
    box-shadow: 0 4px 15px rgba(242, 184, 128, 0.4);
}

.badge-featured {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

/* Stock Indicator */
.stock-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    margin-top: 8px;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.stock-in { background: var(--success); }
.stock-low { background: var(--warning); }
.stock-out { background: var(--danger); }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* ==================== ANIMATED RATING STARS ==================== */
.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    color: #fbbf24;
    font-size: 0.85rem;
    transition: transform var(--anim-fast) var(--ease-bounce);
}

.rating-stars i:hover {
    transform: scale(1.3) rotate(-10deg);
}

.rating-stars .star-half {
    position: relative;
}

.rating-stars .star-half::before {
    content: '\f005';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #fbbf24;
}

/* ==================== ENHANCED COUNTDOWN TIMER ==================== */
.countdown-section {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: pattern-move 20s linear infinite;
}

@keyframes pattern-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(60px); }
}

.countdown-wrapper {
    position: relative;
    z-index: 2;
}

.countdown-item {
    position: relative;
}

.countdown-item .number {
    font-size: 2.5rem;
    font-weight: 900;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: var(--radius);
    min-width: 80px;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: countdown-glow 1s ease-in-out infinite alternate;
}

@keyframes countdown-glow {
    0% { box-shadow: 0 0 10px rgba(255,255,255,0.3); }
    100% { box-shadow: 0 0 25px rgba(255,255,255,0.5); }
}

/* Flip Animation */
.countdown-flip {
    perspective: 400px;
}

.countdown-flip .flip-card {
    position: relative;
    transform-style: preserve-3d;
    animation: flip-number 0.6s ease-in-out;
}

@keyframes flip-number {
    0% { transform: rotateX(0); }
    50% { transform: rotateX(-90deg); }
    100% { transform: rotateX(0); }
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xl);
    animation: toast-slide-up 0.4s var(--ease-bounce);
    border-right: 4px solid var(--primary);
    max-width: 400px;
}

@keyframes toast-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-exit {
    animation: toast-slide-down 0.3s var(--ease-smooth) forwards;
}

@keyframes toast-slide-down {
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.toast-success .toast-icon { background: var(--success); color: white; }
.toast-error .toast-icon { background: var(--danger); color: white; }
.toast-warning .toast-icon { background: var(--warning); color: white; }
.toast-info .toast-icon { background: var(--info); color: white; }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 5px;
    transition: color var(--anim-fast);
}

.toast-close:hover {
    color: var(--danger);
}

/* ==================== QUICK VIEW MODAL ==================== */
.quick-view-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--anim-normal);
}

.quick-view-overlay.show {
    opacity: 1;
    visibility: visible;
}

.quick-view-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--anim-normal) var(--ease-bounce);
    box-shadow: var(--shadow-xl);
}

.quick-view-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.quick-view-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--anim-fast);
}

.quick-view-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.quick-view-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

@media (max-width: 768px) {
    .quick-view-content {
        grid-template-columns: 1fr;
    }
}

.quick-view-gallery {
    position: relative;
}

.quick-view-gallery img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.quick-view-info h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.quick-view-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.quick-view-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* ==================== SETTINGS PANEL ==================== */
.settings-btn {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: white;
    cursor: pointer;
    z-index: 997;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--anim-normal);
}

.settings-btn:hover {
    width: 60px;
}

.settings-btn i {
    animation: rotate-slow 4s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--anim-normal);
}

.settings-overlay.show {
    opacity: 1;
    visibility: visible;
}

.settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform var(--anim-normal) var(--ease-smooth);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
}

.settings-panel.show {
    transform: translateX(0);
}

.settings-header {
    padding: 20px;
    background: var(--primary-light);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.settings-header h3 i {
    color: var(--primary);
}

.settings-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--white);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all var(--anim-fast);
}

.settings-close:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.settings-body {
    padding: 20px;
}

.settings-section {
    margin-bottom: 25px;
}

.settings-section h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-colors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.color-btn {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    border: 3px solid transparent;
    cursor: pointer;
    transition: all var(--anim-fast);
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: var(--secondary);
}

.color-btn.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.mode-btns {
    display: flex;
    gap: 10px;
}

.mode-btn {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--anim-fast);
    font-family: inherit;
}

.mode-btn:hover {
    border-color: var(--primary);
}

.mode-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.font-size-btns {
    display: flex;
    gap: 10px;
}

.font-size-btn {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    transition: all var(--anim-fast);
    font-family: inherit;
}

.font-size-btn:hover {
    border-color: var(--primary);
}

.font-size-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.reset-settings-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--danger);
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    transition: all var(--anim-fast);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reset-settings-btn:hover {
    background: var(--danger);
    color: white;
}

/* ==================== MOBILE BOTTOM NAV ==================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 996;
    padding: 10px 0;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}

@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: 80px;
    }
}

.mobile-bottom-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-bottom-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    transition: all var(--anim-fast);
    padding: 8px 15px;
    border-radius: var(--radius);
}

.mobile-bottom-nav li a i {
    font-size: 1.3rem;
}

.mobile-bottom-nav li a:hover,
.mobile-bottom-nav li a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.mobile-bottom-nav .cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    z-index: 995;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--anim-normal);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 991px) {
    .back-to-top {
        bottom: 100px;
    }
}

/* ==================== CHAT BUTTON ==================== */
.chat-btn {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    z-index: 995;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--anim-normal);
    animation: chat-bounce 2s ease-in-out infinite;
}

@keyframes chat-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.chat-btn:hover {
    transform: scale(1.1);
    animation: none;
}

.chat-btn .notification-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@media (max-width: 991px) {
    .chat-btn {
        bottom: 100px;
        width: 55px;
        height: 55px;
    }
}

/* ==================== SPIN WHEEL ==================== */
.spin-wheel-btn {
    position: fixed;
    bottom: 180px;
    left: 20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    z-index: 995;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--anim-normal);
}

.spin-wheel-btn i {
    font-size: 1.5rem;
    margin-bottom: 4px;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin-wheel-btn:hover {
    transform: scale(1.1);
}

.spin-wheel-btn:hover i {
    animation: spin 0.5s linear infinite;
}

.spin-wheel-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 30px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--anim-normal) var(--ease-bounce);
    text-align: center;
    max-width: 400px;
    width: 95%;
}

.spin-wheel-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.wheel-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 20px auto;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #ef4444 0deg 45deg,
        #f59e0b 45deg 90deg,
        #22c55e 90deg 135deg,
        #3b82f6 135deg 180deg,
        #8b5cf6 180deg 225deg,
        #ec4899 225deg 270deg,
        #06b6d4 270deg 315deg,
        #84cc16 315deg 360deg
    );
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    box-shadow: var(--shadow-xl);
    border: 8px solid white;
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    z-index: 5;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.3));
}

.spin-btn {
    background: var(--gradient-primary);
    border: none;
    padding: 15px 40px;
    border-radius: var(--radius-full);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--anim-fast);
    font-family: inherit;
}

.spin-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.spin-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==================== TRUST BADGES ==================== */
.trust-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.trust-badge i {
    color: var(--success);
}

.trust-badge.verified i { color: var(--primary); }
.trust-badge.fast-shipping i { color: var(--info); }
.trust-badge.original i { color: var(--success); }

/* ==================== NOTIFICATION POPUP ==================== */
.notification-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 15px 20px;
    box-shadow: var(--shadow-xl);
    z-index: 994;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 350px;
    animation: slide-in-right 0.5s var(--ease-bounce);
    border-right: 4px solid var(--primary);
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-popup img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    object-fit: cover;
}

.notification-popup-content {
    flex: 1;
}

.notification-popup-text {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.notification-popup-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.notification-popup-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 991px) {
    .notification-popup {
        bottom: 100px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

/* ==================== ENHANCED SEARCH ==================== */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--anim-fast);
}

.search-suggestions.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background var(--anim-fast);
}

.search-suggestion-item:hover {
    background: var(--gray-100);
}

.search-suggestion-item img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    object-fit: cover;
}

.search-suggestion-info h6 {
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.search-suggestion-info span {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

/* ==================== PULL TO REFRESH ==================== */
.pull-to-refresh {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: var(--primary);
    color: white;
    padding: 15px 30px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 9999;
    transition: transform var(--anim-normal);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pull-to-refresh.show {
    transform: translateX(-50%) translateY(0);
}

.pull-to-refresh i {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== THEME COLORS ==================== */
[data-color="mint"] {
    --primary: #40C9A2;
    --primary-dark: #2BA384;
    --primary-light: #E8F8F4;
    --primary-rgb: 64, 201, 162;
}

[data-color="blue"] {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #EFF6FF;
    --primary-rgb: 59, 130, 246;
}

[data-color="purple"] {
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #F5F3FF;
    --primary-rgb: 139, 92, 246;
}

[data-color="rose"] {
    --primary: #F43F5E;
    --primary-dark: #E11D48;
    --primary-light: #FFF1F2;
    --primary-rgb: 244, 63, 94;
}

[data-color="orange"] {
    --primary: #F97316;
    --primary-dark: #EA580C;
    --primary-light: #FFF7ED;
    --primary-rgb: 249, 115, 22;
}

[data-color="teal"] {
    --primary: #14B8A6;
    --primary-dark: #0D9488;
    --primary-light: #F0FDFA;
    --primary-rgb: 20, 184, 166;
}

[data-color="indigo"] {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #EEF2FF;
    --primary-rgb: 99, 102, 241;
}

[data-color="amber"] {
    --primary: #F59E0B;
    --primary-dark: #D97706;
    --primary-light: #FFFBEB;
    --primary-rgb: 245, 158, 11;
}

/* Font Size Adjustments */
[data-font-size="small"] {
    font-size: 14px;
}

[data-font-size="normal"] {
    font-size: 16px;
}

[data-font-size="large"] {
    font-size: 18px;
}

/* ==================== LAZY LOAD IMAGES ==================== */
.lazy-image {
    opacity: 0;
    transition: opacity var(--anim-normal);
}

.lazy-image.loaded {
    opacity: 1;
}

/* ==================== SCROLL ANIMATIONS ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--anim-slow) var(--ease-smooth);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ==================== ENHANCED BUTTONS ==================== */
.btn-animated {
    position: relative;
    overflow: hidden;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left var(--anim-slow);
}

.btn-animated:hover::before {
    left: 100%;
}

/* Ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==================== ENHANCED CATEGORY CARDS ==================== */
.category-card {
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--anim-normal);
    z-index: 0;
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-icon {
    transition: transform var(--anim-normal) var(--ease-bounce);
}

/* ==================== PARALLAX SECTIONS ==================== */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ==================== CONFETTI ==================== */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 9999;
    pointer-events: none;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}








