/*
 * Esal Store - Modern E-commerce Theme
 * Professional Arabic RTL E-commerce Design
 * Version: 2.0
 */

/* ============================
   CSS Variables & Root
=============================== */
:root {
    /* Primary Colors - Tech & Digital */
    --esal-primary: #0EA5E9;
    --esal-primary-dark: #0284C7;
    --esal-secondary: #6366F1;
    --esal-accent: #F97316;
    --esal-accent-light: #FB923C;

    /* Dark Theme Colors */
    --esal-dark: #0F172A;
    --esal-darker: #020617;
    --esal-dark-secondary: #1E293B;

    /* Light Theme Colors */
    --esal-light: #F1F5F9;
    --esal-gray: #64748b;
    --esal-gray-light: #E2E8F0;
    --esal-white: #ffffff;

    /* Status Colors */
    --esal-success: #10B981;
    --esal-danger: #EF4444;
    --esal-warning: #F59E0B;

    /* Gradients - Tech Style */
    --esal-gradient: linear-gradient(135deg, #0EA5E9 0%, #6366F1 50%, #8B5CF6 100%);
    --esal-gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --esal-gradient-accent: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
    --esal-gradient-success: linear-gradient(135deg, #10B981 0%, #34D399 100%);

    /* Shadows */
    --esal-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --esal-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --esal-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --esal-shadow-glow: 0 0 40px rgba(14, 165, 233, 0.3);

    /* Border Radius */
    --esal-radius: 12px;
    --esal-radius-lg: 20px;
    --esal-radius-xl: 28px;

    /* Transitions */
    --esal-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    background: var(--esal-light);
    color: var(--esal-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Import Cairo Font */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ============================
   Modern Header
=============================== */
.esal-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--esal-transition);
}

.esal-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--esal-shadow-lg);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */
.esal-logo a {
    font-size: 32px;
    font-weight: 800;
    background: var(--esal-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -1px;
}

/* Navigation */
.esal-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.esal-nav a {
    font-size: 15px;
    font-weight: 600;
    color: var(--esal-dark);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: var(--esal-transition);
}

.esal-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--esal-gradient);
    transition: var(--esal-transition);
}

.esal-nav a:hover {
    color: var(--esal-primary);
}

.esal-nav a:hover::after {
    width: 100%;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--esal-gray-light);
    border-radius: 50px;
    font-size: 14px;
    font-family: inherit;
    background: var(--esal-white);
    transition: var(--esal-transition);
}

.header-search input:focus {
    outline: none;
    border-color: var(--esal-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.header-search input::placeholder {
    color: var(--esal-gray);
}

.header-search button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--esal-gray);
    cursor: pointer;
    font-size: 18px;
    transition: var(--esal-transition);
}

.header-search button:hover {
    color: var(--esal-primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--esal-light);
    color: var(--esal-dark);
    text-decoration: none;
    transition: var(--esal-transition);
}

.header-action:hover {
    background: var(--esal-gradient);
    color: var(--esal-white);
    transform: translateY(-2px);
    box-shadow: var(--esal-shadow);
}

.header-action svg {
    width: 22px;
    height: 22px;
}

.cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--esal-danger);
    color: var(--esal-white);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--esal-dark);
    border-radius: 3px;
    transition: var(--esal-transition);
}

/* ============================
   Hero Section
=============================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 40px 80px;
}

.hero-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.03'%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");
    opacity: 0.5;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--esal-white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge-icon {
    font-size: 18px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-title span {
    background: var(--esal-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: var(--esal-transition);
    border: none;
}

.btn-primary {
    background: var(--esal-gradient);
    color: var(--esal-white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--esal-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--esal-white);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--esal-primary);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 550px;
    border-radius: var(--esal-radius-lg);
    box-shadow: var(--esal-shadow-xl);
}

.floating-card {
    position: absolute;
    background: var(--esal-white);
    padding: 20px;
    border-radius: var(--esal-radius);
    box-shadow: var(--esal-shadow-xl);
    animation: float 3s ease-in-out infinite;
}

.floating-card-1 {
    top: 20%;
    left: -30px;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 20%;
    right: -30px;
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ============================
   Categories Section
=============================== */
.categories-section {
    padding: 100px 40px;
    background: var(--esal-white);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    color: var(--esal-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--esal-dark);
    margin-bottom: 15px;
}

.section-description {
    font-size: 18px;
    color: var(--esal-gray);
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.category-card {
    position: relative;
    background: var(--esal-light);
    border-radius: var(--esal-radius-lg);
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    transition: var(--esal-transition);
    overflow: hidden;
    border: 2px solid transparent;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--esal-gradient);
    opacity: 0;
    transition: var(--esal-transition);
}

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

.category-card:hover::before {
    opacity: 0.05;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--esal-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--esal-white);
    position: relative;
    z-index: 1;
}

.category-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--esal-dark);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.category-count {
    font-size: 14px;
    color: var(--esal-gray);
    position: relative;
    z-index: 1;
}

/* Product Category Sections */
.product-category-section {
    margin-bottom: 30px;
}

.category-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--esal-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon-badge {
    font-size: 28px;
}

.category-section-desc {
    font-size: 16px;
    color: var(--esal-gray);
    margin-bottom: 25px;
    padding-right: 42px;
}

.category-desc {
    font-size: 13px;
    color: var(--esal-gray);
    margin-top: 10px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Category-specific card styling */
.category-card[data-category="core"] .category-icon {
    background: linear-gradient(135deg, #0D9488 0%, #22C55E 100%);
}

.category-card[data-category="integration"] .category-icon {
    background: linear-gradient(135deg, #F97316 0%, #EF4444 100%);
}

.category-card[data-category="addon"] .category-icon {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
}

.category-card[data-category="core"]:hover {
    border-color: #0D9488;
}

.category-card[data-category="integration"]:hover {
    border-color: #F97316;
}

.category-card[data-category="addon"]:hover {
    border-color: #6366F1;
}

/* ============================
   Products Section
=============================== */
.products-section {
    padding: 100px 40px;
    background: var(--esal-light);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.products-header .section-header {
    text-align: right;
    margin-bottom: 0;
}

.products-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    border: none;
    background: var(--esal-white);
    color: var(--esal-gray);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--esal-transition);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--esal-gradient);
    color: var(--esal-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--esal-white);
    border-radius: var(--esal-radius-lg);
    overflow: hidden;
    transition: var(--esal-transition);
    position: relative;
    border: 1px solid var(--esal-gray-light);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--esal-shadow-xl);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--esal-light);
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.badge-sale {
    background: var(--esal-danger);
    color: var(--esal-white);
}

.badge-new {
    background: var(--esal-accent);
    color: var(--esal-white);
}

.product-actions {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: var(--esal-transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.product-action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--esal-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--esal-transition);
    box-shadow: var(--esal-shadow);
}

.product-action-btn:hover {
    background: var(--esal-primary);
    color: var(--esal-white);
}

.product-info {
    padding: 25px;
}

.product-category {
    font-size: 12px;
    color: var(--esal-primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--esal-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-name a {
    color: inherit;
    text-decoration: none;
    transition: var(--esal-transition);
}

.product-name a:hover {
    color: var(--esal-primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.stars {
    color: var(--esal-secondary);
    font-size: 14px;
}

.rating-count {
    font-size: 13px;
    color: var(--esal-gray);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--esal-primary);
}

.old-price {
    font-size: 16px;
    color: var(--esal-gray);
    text-decoration: line-through;
}

/* ============================
   Features Section
=============================== */
.features-section {
    padding: 100px 40px;
    background: var(--esal-dark);
    color: var(--esal-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--esal-radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--esal-transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--esal-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* ============================
   Newsletter Section
=============================== */
.newsletter-section {
    padding: 100px 40px;
    background: var(--esal-gradient);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--esal-white);
    margin-bottom: 15px;
}

.newsletter-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-family: inherit;
}

.newsletter-form button {
    padding: 18px 35px;
    background: var(--esal-dark);
    color: var(--esal-white);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--esal-transition);
}

.newsletter-form button:hover {
    background: var(--esal-darker);
    transform: translateY(-2px);
}

/* ============================
   Footer
=============================== */
.esal-footer {
    background: var(--esal-darker);
    color: var(--esal-white);
    padding: 80px 40px 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: 20px 0 25px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--esal-white);
    text-decoration: none;
    transition: var(--esal-transition);
}

.social-link:hover {
    background: var(--esal-gradient);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--esal-white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--esal-transition);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--esal-white);
    padding-right: 10px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 15px;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-payments {
    display: flex;
    gap: 15px;
}

.payment-icon {
    width: 50px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================
   WooCommerce Customizations
=============================== */
.woocommerce-page {
    padding-top: 100px;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.woocommerce ul.products li.product {
    background: var(--esal-white);
    border-radius: var(--esal-radius-lg);
    overflow: hidden;
    transition: var(--esal-transition);
    border: 1px solid var(--esal-gray-light);
    padding: 0;
    margin: 0;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-10px);
    box-shadow: var(--esal-shadow-xl);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    text-decoration: none;
}

.woocommerce ul.products li.product img {
    margin: 0;
    border-radius: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 20px 20px 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--esal-dark);
}

.woocommerce ul.products li.product .price {
    padding: 0 20px 20px;
    color: var(--esal-primary);
    font-weight: 800;
    font-size: 20px;
}

.woocommerce ul.products li.product .button {
    margin: 0 20px 20px;
    background: var(--esal-gradient);
    color: var(--esal-white);
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 600;
    border: none;
    transition: var(--esal-transition);
}

.woocommerce ul.products li.product .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Cart & Checkout */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.woocommerce table.shop_table {
    border-radius: var(--esal-radius);
    overflow: hidden;
    border: 1px solid var(--esal-gray-light);
}

.woocommerce .button,
.woocommerce button.button {
    background: var(--esal-gradient) !important;
    color: var(--esal-white) !important;
    border-radius: 50px !important;
    padding: 15px 30px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: var(--esal-transition) !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* My Account */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--esal-white);
    border-radius: var(--esal-radius);
    overflow: hidden;
    box-shadow: var(--esal-shadow);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--esal-gray-light);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 15px 25px;
    color: var(--esal-dark);
    text-decoration: none;
    transition: var(--esal-transition);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--esal-gradient);
    color: var(--esal-white);
}

/* ============================
   Responsive Design
=============================== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-description {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .esal-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-search {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .hero-section {
        padding: 120px 20px 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-header .section-header {
        text-align: center;
        width: 100%;
    }

    .products-tabs {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

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

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

/* ============================
   Modern Animations & Effects
=============================== */

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Animation Delays */
.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;
}

.stagger-6 {
    transition-delay: 0.6s;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Text Animation */
.gradient-text-animated {
    background: linear-gradient(135deg, #0EA5E9, #6366F1, #8B5CF6, #F97316, #0EA5E9);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

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

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3),
        0 0 40px rgba(14, 165, 233, 0.2),
        0 0 60px rgba(14, 165, 233, 0.1);
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.4),
        0 0 60px rgba(14, 165, 233, 0.3),
        0 0 90px rgba(14, 165, 233, 0.2);
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

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

/* Typing Effect Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--esal-primary);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* 3D Card Effect */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease;
}

.card-3d:hover {
    transform: rotateY(-5deg) rotateX(5deg);
}

/* Floating Animation Variants */
@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes floatFast {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

.float-fast {
    animation: floatFast 3s ease-in-out infinite;
}

/* Bounce Animation */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--esal-gradient);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--esal-gradient);
    color: var(--esal-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--esal-transition);
    box-shadow: var(--esal-shadow-lg);
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--esal-shadow-xl);
}

/* ============================
   Mobile Menu Sidebar
=============================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: var(--esal-transition);
    z-index: 1001;
}

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

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--esal-white);
    box-shadow: var(--esal-shadow-xl);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
    overflow-y: auto;
}

.mobile-menu-sidebar.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--esal-gray-light);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--esal-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--esal-transition);
}

.mobile-menu-close:hover {
    background: var(--esal-danger);
    color: var(--esal-white);
}

.mobile-menu-nav {
    padding: 20px 0;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: var(--esal-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--esal-transition);
    border-right: 3px solid transparent;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background: rgba(14, 165, 233, 0.1);
    color: var(--esal-primary);
    border-right-color: var(--esal-primary);
}

.mobile-menu-nav a svg {
    width: 22px;
    height: 22px;
    opacity: 0.7;
}

.mobile-menu-cta {
    padding: 25px;
    border-top: 1px solid var(--esal-gray-light);
}

.mobile-menu-cta .btn {
    width: 100%;
    justify-content: center;
}

/* ============================
   Statistics Counter Section
=============================== */
.stats-section {
    padding: 80px 40px;
    background: var(--esal-gradient-dark);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--esal-radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--esal-transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--esal-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--esal-white);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.stat-value .counter {
    display: inline-block;
}

.stat-suffix {
    font-size: 28px;
    color: var(--esal-primary);
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ============================
   Testimonials Section
=============================== */
.testimonials-section {
    padding: 100px 40px;
    background: var(--esal-white);
    overflow: hidden;
}

.testimonials-slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonials-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 50px;
    background: var(--esal-light);
    border-radius: var(--esal-radius-xl);
    text-align: center;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 120px;
    color: var(--esal-primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    font-size: 20px;
    line-height: 1.9;
    color: var(--esal-dark);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--esal-primary);
}

.testimonial-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--esal-dark);
    margin-bottom: 5px;
}

.testimonial-info p {
    font-size: 14px;
    color: var(--esal-gray);
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-bottom: 25px;
}

.testimonial-rating span {
    color: #FFC107;
    font-size: 22px;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.testimonials-nav button {
    width: 50px;
    height: 50px;
    border: 2px solid var(--esal-gray-light);
    background: var(--esal-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--esal-transition);
}

.testimonials-nav button:hover {
    background: var(--esal-gradient);
    border-color: transparent;
    color: var(--esal-white);
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonials-dots button {
    width: 12px;
    height: 12px;
    border: none;
    background: var(--esal-gray-light);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--esal-transition);
}

.testimonials-dots button.active {
    background: var(--esal-gradient);
    width: 30px;
    border-radius: 6px;
}

/* ============================
   FAQ Section
=============================== */
.faq-section {
    padding: 100px 40px;
    background: var(--esal-light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--esal-white);
    border-radius: var(--esal-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--esal-shadow);
    border: 1px solid transparent;
    transition: var(--esal-transition);
}

.faq-item:hover {
    border-color: var(--esal-primary);
}

.faq-item.active {
    box-shadow: var(--esal-shadow-lg);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    cursor: pointer;
    transition: var(--esal-transition);
}

.faq-question:hover {
    background: rgba(14, 165, 233, 0.05);
}

.faq-question h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--esal-dark);
    margin: 0;
    flex: 1;
}

.faq-icon {
    width: 35px;
    height: 35px;
    background: var(--esal-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--esal-transition);
    flex-shrink: 0;
    margin-right: 15px;
}

.faq-item.active .faq-icon {
    background: var(--esal-gradient);
    color: var(--esal-white);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 30px 25px;
    color: var(--esal-gray);
    line-height: 1.8;
    font-size: 15px;
}

/* ============================
   Partners/Clients Logos
=============================== */
.partners-section {
    padding: 60px 40px;
    background: var(--esal-white);
    overflow: hidden;
}

.partners-title {
    text-align: center;
    font-size: 16px;
    color: var(--esal-gray);
    margin-bottom: 40px;
    font-weight: 500;
}

.partners-slider {
    display: flex;
    animation: scroll 30s linear infinite;
}

.partners-slider:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    flex-shrink: 0;
    width: 180px;
    height: 80px;
    margin: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--esal-transition);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ============================
   Enhanced Responsive
=============================== */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card {
        padding: 40px 30px;
    }

    .testimonial-content {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-card {
        padding: 30px 15px;
    }

    .stat-value {
        font-size: 36px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .testimonial-content {
        font-size: 16px;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 15px;
    }

    .faq-answer-content {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .scroll-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Mobile Menu CTA Buttons - Smaller on Mobile */
@media (max-width: 768px) {
    .mobile-menu-cta .btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    .mobile-menu-cta .btn svg {
        width: 16px;
        height: 16px;
    }

    .mobile-menu-cta {
        padding: 15px;
    }

    /* Hero section buttons */
    .hero-buttons .btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }

    /* Pricing Section Grid - Force single column on mobile */
    #pricing .products-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Pricing Cards - Adjust sizes */
    #pricing .product-card {
        padding: 25px 20px !important;
        transform: none !important;
    }

    /* Remove scale effect on popular card for mobile */
    #pricing .product-card[style*="scale"] {
        transform: none !important;
    }
}

/* Fix btn-secondary on pricing cards (white background) */
#pricing .btn-secondary,
#pricing .product-card .btn-secondary {
    background: transparent !important;
    color: #0EA5E9 !important;
    border: 2px solid #0EA5E9 !important;
}

#pricing .btn-secondary:hover,
#pricing .product-card .btn-secondary:hover {
    background: #0EA5E9 !important;
    color: #ffffff !important;
}

/* Tablet adjustments for pricing */
@media (min-width: 769px) and (max-width: 992px) {
    #pricing .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}