:root {
    /* Main Colors - Dark Theme */
    --primary: #00a651;
    --primary-dark: #006837;  
    --primary-light: #22c55e;
    --secondary: #3399ff;
    --accent: #fbbf24; 
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    
    /* Background Colors - Dark Theme */
    --background: #000000;
    --background-secondary: #111111;
    --background-tertiary: #1a1a1a;
    --card-background: rgba(26, 26, 26, 0.9);
    
    /* Text Colors - Dark Theme */
    --text: #ffffff;
    --text-muted: #cccccc;
    --text-secondary: #999999;
    
    /* Border Colors - Dark Theme */
    --border: #333333;
    --border-light: #404040;
    
    /* Glass Effect */
    --glass-bg: rgba(26, 26, 26, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-backdrop: blur(20px);
    
    /* Shadows */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 8px 25px rgba(0, 166, 81, 0.3);
    
    /* Border Radius */
    --border-radius: 12px;
    --border-radius-lg: 16px;  
    --border-radius-xl: 24px;
    
    /* Transitions */
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary), var(--primary-light));
    --secondary-gradient: linear-gradient(135deg, var(--secondary), #60a5fa);
    --accent-gradient: linear-gradient(135deg, var(--accent), #f59e0b);
    
    /* Layout Heights */
    --news-bar-height: 45px;
    --header-height: 70px;
    --total-header-height: calc(var(--header-height) + var(--news-bar-height));
}

/* Light Theme */
body.light-theme {
    --background: #ffffff;
    --background-secondary: #f8fafc;
    --background-tertiary: #f1f5f9;
    --card-background: rgba(255, 255, 255, 0.9);
    
    --text: #1f2937;
    --text-muted: #6b7280;
    --text-secondary: #9ca3af;
    
    --border: #e5e7eb;
    --border-light: #d1d5db;
    
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.1);
    
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--background) 0%, var(--background-secondary) 50%, var(--background) 100%);
    color: var(--text);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    transition: var(--transition);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 166, 81, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(51, 153, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* News Bar Styles - محسنة */
.news-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--news-bar-height);
    z-index: 1001;
    overflow: hidden;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.news-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideText 15s linear infinite;
}

.news-text {
    white-space: nowrap;
    padding: 0 2rem;
    display: inline-block;
}

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

/* تعديل padding للمحتوى الرئيسي عند وجود الشريط الإخباري */
body .main-content {
    padding-top: var(--header-height);
}

body:has(.news-bar) .main-content {
    padding-top: var(--total-header-height);
}

body:has(.news-bar) .main-header {
    top: var(--news-bar-height);
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.logo-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

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

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(0, 166, 81, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-toggle,
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    color: var(--text);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
}

.view-toggle:hover,
.theme-toggle:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid var(--border-light);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary);
    color: white;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.cart-count.show {
    opacity: 1;
    transform: scale(1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--card-background);
    backdrop-filter: var(--glass-backdrop);
    border-left: 1px solid var(--glass-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-menu.show .mobile-menu-content {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text);
}

.mobile-logo i {
    color: var(--primary);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: var(--background-tertiary);
}

.mobile-nav {
    padding: 1rem;
    flex: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background: var(--background-tertiary);
    color: var(--primary);
}

.mobile-nav-link i:first-child {
    width: 20px;
    color: var(--primary);
}

.mobile-nav-link i:last-child {
    margin-right: auto;
    opacity: 0.5;
    transform: rotate(180deg);
}

.mobile-view-toggle,
.mobile-theme-toggle {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.view-toggle-mobile,
.theme-toggle-mobile {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    color: var(--text);
    padding: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.view-toggle-mobile:hover,
.theme-toggle-mobile:hover {
    background: var(--primary);
    color: white;
}

/* Slider Styles - محسنة ومطورة */
.slider-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 0;
    z-index: 10;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-secondary);
}

.slider-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
    padding: 2rem;
}

.slide-text {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.5s both;
}

.slide-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: white;
}

.slide-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.9);
}

.slide-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
}

.slide-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--primary-dark);
    border-color: rgba(255, 255, 255, 0.3);
}

.slide-button i {
    transition: transform var(--transition);
}

.slide-button:hover i {
    transform: translateX(-3px);
}

/* Slider Navigation - محسنة */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.slider-prev {
    right: 2rem;
}

.slider-next {
    left: 2rem;
}

/* Slider Dots - محسنة */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 3;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.slider-dot:hover,
.slider-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.slider-dot.active::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    80% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

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

/* Hero Section */
.hero-section {
    min-height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    margin-top: -2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 166, 81, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    left: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: -12rem;
    margin-bottom: 2rem;
}

/* إخفاء المحتوى الرئيسي عند الإيقاف */
.hero-content.disabled {
    display: none;
}

/* تعديل المسافة عند إيقاف المحتوى الرئيسي */
.search-section-no-hero {
    padding-top: 2rem;
}

.search-section-no-hero .hero-content {
    display: none;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1rem;
}

/* إخفاء العنوان الرئيسي عند الإيقاف */
.hero-title.disabled {
    display: none;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* إخفاء النص المميز عند الإيقاف */
.gradient-text.disabled {
    display: none;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 800px;
}

/* إخفاء الوصف عند الإيقاف */
.hero-description.disabled {
    display: none;
}

/* Section Styles */
.section {
    padding: 0rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Search Section */
.search-section {
    padding: 1rem 0 2rem 0;
}

.search-section-no-hero {
    padding: 1rem 0 2rem 0;
    margin-top: 0;
}

.search-filters {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.search-bar {
    width: 100%;
    max-width: 600px;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card-background);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
    box-shadow: var(--shadow);
}

.search-input-container input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem;
    color: var(--text);
    font-size: 1rem;
    outline: none;
}

.search-input-container input::placeholder {
    color: var(--text-muted);
}

.search-button {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

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

.clear-search {
    background: var(--danger);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search:hover {
    background: #dc2626;
}

.category-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* للهواتف: صف واحد قابل للسحب */
@media (max-width: 768px) {
    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        padding: 0.5rem 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) transparent;
        max-width: 100%;

    }
    
    .category-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .category-tabs::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .category-tabs::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 2px;
    }
    
    .category-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

.category-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-tab:hover,
.category-tab.active {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* التصنيفات الخارجية */
.category-link {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
}

.category-link:hover {
    background: var(--secondary-gradient) !important;
    color: white !important;
}

/* Products Section */
.products-section {
    min-height: 50vh;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
}

/* List View Mode */
.tools-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.tools-grid.list-view .tool-card {
    display: flex;
    align-items: center;
    flex-direction: row;
 }
 
 

/* الكمبيوتر (الافتراضي) */
.tools-grid.list-view .product-image-container {
    width: 300px;
    flex-shrink: 0;
}

/* الهواتف (شاشات صغيرة) */
@media (max-width: 768px) {
    .tools-grid.list-view .product-image-container {
        width: auto;
        flex-shrink: 0;
    }
}

.tools-grid.list-view .product-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.tool-card {
    background: var(--card-background);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.product-badge {
    position: absolute;
    top: 0rem;
    right: 0rem;
    background: var(--danger);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: var(--shadow);
    direction: ltr;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.tool-card:hover .product-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition);
}

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

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9rem;
}

.product-rating .fas,
.product-rating .far {
    color: var(--accent);
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-category {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
}

.tool-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin: 0;
}

.tool-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.current-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}

.original-price {
    font-size: 1rem !important;
    color: var(--text-muted) !important;
    text-decoration: line-through;
    font-weight: 500 !important;
}

.product-actions {
    display: grid;
    gap: 0.5rem;
    margin-top: auto;
}
.tool-button {
    flex: 1;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
}

.tool-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tool-button.preview-button {
    background: var(--accent-gradient);
    flex: 0.6;
}

.tool-button.preview-button:hover {
    background: #ea580c;
}

.tool-button.add-to-cart-btn {
    flex: 1.4;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.no-products {
    text-align: center;
    padding: 4rem 2rem;
}

.no-products-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.no-products-content i {
    font-size: 4rem;
    opacity: 0.5;
}

.no-products-content h3 {
    font-size: 1.5rem;
    color: var(--text);
}

/* Contact Section */
.contact-section {
    background: rgba(0, 166, 81, 0.05);
    border-top: 1px solid var(--border);
}

body.light-theme .contact-section {
    background: rgba(0, 166, 81, 0.02);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--card-background);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow);
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background: var(--card-background);
    backdrop-filter: var(--glass-backdrop);
    border-right: 1px solid var(--glass-border);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.cart-sidebar.active {
    left: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.close-cart {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-muted);
    gap: 1rem;
}

.empty-cart i {
    font-size: 3rem;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

body.light-theme .cart-item {
    background: rgba(0, 0, 0, 0.03);
}

.cart-item:hover {
    border-color: var(--primary);
    transform: translateX(-5px);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.3;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.quantity-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
}

.remove-item {
    background: var(--danger);
    border: none;
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    margin-right: auto;
    font-size: 0.8rem;
}

.remove-item:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 4rem;
}

body.light-theme .cart-footer {
    background: rgba(0, 0, 0, 0.03);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.checkout-btn {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
}

.checkout-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.main-footer {
    background: var(--background-tertiary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary);
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand i {
    color: var(--danger);
}

.footer-brand a {
    color: var(--primary);
    text-decoration: none;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.float-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    background: var(--primary-gradient);
    color: white;
    position: relative;
}

.float-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Floating Checkout Button Styles */
.checkout-float {
    background: var(--accent-gradient) !important;
    animation: pulse 2s infinite;
}

.checkout-float:hover {
    background: #ea580c !important;
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: var(--shadow-lg);
    }
    50% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
        transform: scale(1.05);
    }
    100% {
        box-shadow: var(--shadow-lg);
    }
}

.floating-checkout-mini {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
}

/* Product Details Page Styles */
.product-section {
    padding: 2rem 0;
    background: rgba(26, 26, 26, 0.3);
}

body.light-theme .product-section {
    background: rgba(0, 0, 0, 0.02);
}

.product-details-container {
    background: var(--card-background);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.zoom-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    transition: all var(--transition);
}

.main-image-container:hover .zoom-icon {
    opacity: 1;
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.product-info-detailed {
    padding: 0;
}

.product-category-detailed {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-title-detailed {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.stars i {
    color: var(--accent);
    font-size: 1rem;
}

.rating-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-price-detailed {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-price-detailed .original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 500;
}

.product-price-detailed .current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.discount-percent {
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.product-description-detailed {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    
}

.product-features {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

body.light-theme .product-features {
    background: rgba(0, 0, 0, 0.03);
}

.product-features h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.product-features li i {
    color: var(--success);
    font-size: 1rem;
    width: 16px;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--success);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.product-actions-detailed {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    min-width: 150px;
}

body.light-theme .quantity-selector {
    background: rgba(0, 0, 0, 0.03);
}

.quantity-selector button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 700;
    color: var(--text);
    font-size: 1.2rem;
}

.quantity-selector button:hover {
    background: var(--primary);
    color: white;
}

.quantity-selector input {
    border: none;
    padding: 0rem;
    width: 60px;
    text-align: center;
    font-weight: 600;
    background: transparent;
    font-size: 1.1rem;
    color: var(--text);
}

.add-to-cart-detailed {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    box-shadow: var(--shadow);
}

.add-to-cart-detailed:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.preview-section {
    margin-bottom: 2rem;
}

.preview-btn-large {
    width: 100%;
    background: var(--warning);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
}

.preview-btn-large:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
}

.product-guarantees {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

body.light-theme .product-guarantees {
    background: rgba(0, 0, 0, 0.03);
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.guarantee-item i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity var(--transition);
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* للكمبيوتر (شاشات أكبر من 768px) */
@media (min-width: 768px) {
    .lightbox-content {
        max-width: 35%;
    }
}


.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 111%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
/* للكمبيوتر – شاشات أكبر من 768px */
@media (min-width: 768px) {
    .lightbox-prev, .lightbox-next {
        top: 50%;
    }
}


.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 900;
}

/* Toast Notifications */
#toastContainer {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 3000;
    display: flex;  
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--card-background);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    transform: translateX(-400px);
    transition: var(--transition);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--secondary);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast.info .toast-icon {
    color: var(--secondary);
}

.toast span {
    color: var(--text);
    font-weight: 500;
}

/* Responsive Design - تحسين للهواتف */
@media (max-width: 1024px) {
    .hero-content {
        margin-top: -8rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .view-toggle {
        display: none;
    }

    /* تحديث المتغيرات للهواتف */
    :root {
        --news-bar-height: 40px;
        --header-height: 60px;
        --total-header-height: calc(var(--header-height) + var(--news-bar-height));
    }

    .main-content {
        padding-top: var(--header-height);
    }

    body:has(.news-bar) .main-content {
        padding-top: var(--total-header-height);
    }

    body:has(.news-bar) .main-header {
        top: var(--news-bar-height);
    }

    /* News Bar للهواتف */
    .news-bar {
        height: var(--news-bar-height);
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }

    .news-text {
        font-size: 0.8rem;
    }

    /* Slider للهواتف */
    .slider-section {
        height: 300px;
        margin-bottom: 0;
    }

    .slide-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .slide-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .slide-text {
        padding: 1rem;
        max-width: 90%;
    }

    .slide-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .product-image-container {
        height: 120px !important;
    }

    .slider-nav {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .slider-prev {
        right: 1rem;
    }

    .slider-next {
        left: 1rem;
    }

    .slider-dots {
        bottom: 1rem;
        gap: 0.5rem;
    }

    .slider-dot {
        width: 12px;
        height: 12px;
    }

    .hero-section {
        min-height: 20vh;
        padding: 1rem 0;
    }

    .hero-content {
        margin-top: -5rem;
    }

    .search-section {
        padding: 0.5rem 0 1rem 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 0rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .search-filters {
        gap: 1.5rem;
    }

    .category-tabs {
        gap: 0.5rem;
    }

    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Products Grid - عرض منتجين في صف واحد */
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    /* تصغير حجم المربعات في الهواتف */
    .tool-card {
        font-size: 0.8rem;
    }
    
    .product-image-container {
        height: 160px !important;
    }
    
    .product-content {
        padding: 1rem 0.75rem !important;
        gap: 0.5rem !important;
    }
    
    .tool-title {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }
    
    .tool-description {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-price {
        gap: 0.5rem !important;
    }
    
    
    .original-price {
        font-size: 0.8rem !important;
    }
    
    .product-actions {
        gap: 0.25rem !important;
        flex-direction: column !important;
    }
    
    .tool-button {
        padding: 0.5rem !important;
        font-size: 0.75rem !important;
        gap: 0.25rem !important;
    }
    
    .product-badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cart-sidebar {
        width: 90%;
        max-width: 350px;
    }

    .floating-buttons {
        bottom: 1rem;
        right: 1rem;
    }

    .float-button {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    #toastContainer {
        bottom: 1rem;
        left: 1rem;
        right: 5rem;
    }

    .toast {
        min-width: auto;
        transform: translateY(100px);
    }

    .toast.show {
        transform: translateY(0);
    }

    .product-actions-detailed {
        flex-direction: column;
        gap: 1rem;
    }

    .quantity-selector {
        justify-content: center;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: -50px;
        right: 10px;
    }

    .lightbox-counter {
        bottom: -65px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .contact-card {
        padding: 1.5rem 1rem;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* تحديث المتغيرات للهواتف الصغيرة */
    :root {
        --news-bar-height: 35px;
        --header-height: 55px;
        --total-header-height: calc(var(--header-height) + var(--news-bar-height));
    }

    .main-content {
        padding-top: var(--header-height);
    }

    body:has(.news-bar) .main-content {
        padding-top: var(--total-header-height);
    }

    .news-bar {
        font-size: 0.75rem;
        height: var(--news-bar-height);
    }

    .slider-section {
        height: 250px;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .slide-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
                margin-top: -1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section {
        padding: 0rem 0;
    }

    .search-input-container {
        padding: 0.25rem;
    }

    .search-input-container input {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .category-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .product-details-container {
        padding: 1rem;
    }

    .product-title-detailed {
        font-size: 1.5rem;
    }

    .product-price-detailed .current-price {
        font-size: 1.8rem;
    }

    .main-image {
        height: auto;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

.loading {
    pointer-events: none;
    opacity: 0.7;
}

.disabled {
    display: none !important;
}

.filter-group {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    min-width: 250px;
    align-items: center;
}
.filter-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.filter-group select {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.2);
}

@media (max-width: 768px) {
    .filter-group {
        min-width: 100%;
    }
}

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

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

@keyframes slideIn {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}
.product-stock {
    display: none;
}

p.tool-description {
    display: none;
}

option {
    background: var(--card-background);
    color: var(--text);
}