
.rtl {
    direction: rtl;
}
.ltr {
    direction: ltr;
}

body {
    font-family: 'Cairo', sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #E31E24 0%, #FF6B35 75%, #FF6B35 100%);
    /* background: linear-gradient(135deg, #E31E24 0%, #FF6B35 100%); */
}
.gradient-btn {
    background: linear-gradient(135deg, #E31E24 0%, #dc2626 75%, #dc2626 100%);
}
.dark-bg {
    background: #011f31;
}
.sidebar {
    transition: transform 0.3s ease;
    width: 280px;
}

.sidebar-collapsed {
    transform: translateX(280px);
    width: 0;
}

#search-header{
    position: relative;
}
@media (max-width: 768px) {
    #search-header {
        position: absolute;
        top: 80px;
        width: calc(100% - 35px);
    }
}

@media (max-width: 768px) {
    .hidden{
        display: none !important;
    }
    .sidebar {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        z-index: 999;
        transform: translateX(280px);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.menu-item {
    transition: all 0.3s ease;
}

.menu-item:hover, .menu-item.active {
    background: linear-gradient(90deg, #FF6B35 0%, #FF6B35 100%);
    color: white;
}

.menu-item.active {
    border-right: 4px solid #FFA500;
}

.chart-container {
    position: relative;
    height: 300px;
}

.table-hover tbody tr {
    transition: all 0.3s ease;
}

.table-hover tbody tr:hover {
    background: #f9fafb;
    transform: scale(1.01);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #dcfce7;
    color: #16a34a;
}

.badge-warning {
    background: #fef3c7;
    color: #d97706;
}

.badge-danger {
    background: #fee2e2;
    color: #dc2626;
}

.badge-info {
    background: #dbeafe;
    color: #2563eb;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFA500, #FF6B35);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.notification-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #FF6B35;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-badge.hidden {
    display: none;
}


.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.badge-hot {
    background: linear-gradient(135deg, #FF6B35, #FF6B35);
}

.filter-sidebar {
    transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
    .filter-sidebar {
        transform: translateX(100%);
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        z-index: 999;
        background: white;
        width: 80%;
        max-width: 300px;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    .filter-sidebar.active {
        transform: translateX(0);
    }
    
    .filter-sidebar.hidden {
        display: block !important;
    }
}

.price-range-slider {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
}

.price-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FF6B35;
    cursor: pointer;
}

.price-range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FF6B35;
    cursor: pointer;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .video-overlay {
    opacity: 1;
}

.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quick-view-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.pagination-btn {
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    transform: scale(1.1);
}

.loading-spinner {
    display: none;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FF6B35;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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



.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}



/**
* Index styles
*/
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.badge-hot {
    background: linear-gradient(135deg, #FF6B35, #FF6B35);
}

.firework {
    animation: firework 1.5s ease-in-out infinite;
}

@keyframes firework {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.lightning-flash {
    animation: flash 1s ease-in-out infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.swing {
    animation: swing 1s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

.rotate-infinite {
    animation: rotate 4s linear infinite;
}   
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.rotate-horizontal {
    animation: rotateHorizontal 4s linear infinite;
}

@keyframes rotateHorizontal {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}
.swing-firework {
    animation: swingFirework 2.5s ease-in-out infinite;
}

@keyframes swingFirework {
    0%, 100% { transform: rotate(0deg); }
    25% {opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); transform: rotate(10deg); }
    75% {opacity: 0.7; transform: scale(1); }
}


/**
* Product Details styles
*/

.thumbnail {
    transition: all 0.3s ease;
    cursor: pointer;
}

.thumbnail:hover, .thumbnail.active {
    border-color: #FF6B35;
    transform: scale(1.05);
}

.zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.zoom-container img {
    transition: transform 0.3s ease;
    transform-origin: center center;
    will-change: transform;
}

.zoom-container.zoomed {
    cursor: zoom-out;
}

.zoom-container.zoomed img {
    transform: scale(2.5);
}

/* Zoom hint indicator */
.zoom-container::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.zoom-container:hover::after {
    opacity: 1;
}

.zoom-container.zoomed::after {
    content: '\f010';
}

.color-option {
    transition: all 0.3s ease;
    cursor: pointer;
}

.color-option:hover, .color-option.selected {
    border-color: #FF6B35;
    transform: scale(1.1);
}

.size-option {
    transition: all 0.3s ease;
    cursor: pointer;
}

.size-option:hover, .size-option.selected {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.quantity-btn {
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #FF6B35;
    color: white;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.review-item {
    transition: all 0.3s ease;
}

.review-item:hover {
    background: #f9fafb;
}

button {
    cursor: pointer;
}
.tab-button {
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #FF6B35;
    border-bottom: 3px solid #FF6B35;
}

.toast.show {
    display: block;
    background-color: #E31E24;
}

@keyframes toastSlide {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFA500, #FF6B35);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.image-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.image-gallery-nav:hover {
    background: #FF6B35;
    color: white;
}

.image-gallery-nav.prev {
    right: 10px;
}

.image-gallery-nav.next {
    left: 10px;
}

/**
* Auth styles
*/
.auth-bg {
    background: linear-gradient(135deg, #FF6B35 0%, #FF6B35 50%, #FFA500 100%);
    position: relative;
    overflow: hidden;
}
.auth-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}
.auth-bg::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite 2s;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
.floating {
    animation: floating 3s ease-in-out infinite;
}
@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
.input-group {
    position: relative;
}
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: -10px;
    right: 12px;
    font-size: 12px;
    background: white;
    padding: 0 8px;
    color: #FF6B35;
}
.input-group label {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s;
    pointer-events: none;
    color: #9CA3AF;
}
.social-btn {
    transition: all 0.3s ease;
}
.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}
.strength-fill {
    height: 100%;
    transition: all 0.3s;
    width: 0%;
}
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}
.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #e5e7eb;
    color: #9ca3af;
    transition: all 0.3s;
}
.step.active {
    background: linear-gradient(135deg, #FF6B35 0%, #FF6B35 100%);
    border-color: #FF6B35;
    color: white;
    transform: scale(1.1);
}
.step.completed {
    background: #10b981;
    border-color: #10b981;
    color: white;
}
.step-line {
    width: 50px;
    height: 2px;
    background: #e5e7eb;
    transition: all 0.3s;
}
.step-line.active {
    background: linear-gradient(90deg, #FF6B35 0%, #FF6B35 100%);
}

.hover-scale {
    transition: transform 0.3s;
}
.hover-scale:hover {
    transform: scale(1.05);
}
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/**
* Featured Collections styles
*/
.collections-track {
    direction: ltr;
}

.collections-slider-wrapper {
    position: relative;
}

.collections-slider {
    position: relative;
}

.collections-track {
    display: flex;
    will-change: transform;
}

.collection-slide {
    min-width: 100%;
}

.collections-arrow {
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.collections-arrow:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.collection-dot {
    cursor: pointer;
}

@media (max-width: 768px) {
    .tab-button {
        font-size: 12px;
    }
    .collections-arrow {
        width: 48px;
        height: 48px;
    }
    
    .collections-prev {
        left: -8px;
        transform: translateY(-50%) translateX(0);
    }
    
    .collections-next {
        right: -8px;
        transform: translateY(-50%) translateX(0);
    }
}

/* Smooth animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.collection-slide {
    animation: slideIn 0.5s ease-out;
}