/*
Theme Name: Asraa Tech Theme
Theme URI: https://esraaworldbh.com
Author: Manus AI
Author URI: https://manus.im
Description: A modern and professional e-commerce WordPress theme for tech stores, fully compatible with WooCommerce and Elementor, based on the provided HTML design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asraa-tech-theme
Domain Path: /languages
Tags: woocommerce, ecommerce, elementor, responsive, rtl, arabic, modern, tech
*/

/* ===== CSS Variables ===== */
:root {
    --primary: #6C3FE8;
    --primary-dark: #4A24C4;
    --accent: #00D4FF;
    --accent2: #FF3CAC;
    --bg: #0A0A14;
    --bg2: #10101E;
    --card: #15152A;
    --card2: #1C1C35;
    --text: #F0EEFF;
    --muted: #8884A8;
    --border: rgba(108,63,232,0.25);
}

/* ===== Reset & Base Styles ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text);
}

h1 { font-size: clamp(36px, 5.5vw, 62px); }
h2 { font-size: clamp(24px, 3.5vw, 38px); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--muted);
    line-height: 1.8;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent2));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(108,63,232,0.4);
    transition: transform .2s, box-shadow .2s;
    display: inline-block;
    text-align: center;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108,63,232,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 14px 32px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    display: inline-block;
    text-align: center;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(108,63,232,0.35);
    transition: transform .2s, box-shadow .2s;
}
.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108,63,232,0.5);
}

.add-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s;
}
.add-btn:hover {
    transform: scale(1.05);
}

/* ===== Header (NAV) ===== */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,20,0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 18px rgba(108,63,232,0.5);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text span:first-child {
    font-size: 17px;
    font-weight: 900;
    color: var(--text);
}

.logo-text span:last-child {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    color: var(--text);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        background: var(--bg);
        border-top: 1px solid var(--border);
        padding: 15px 5%;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin-bottom: 10px;
    }

    .nav-links a {
        padding: 10px 0;
        display: block;
    }

    .menu-toggle {
        display: block;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 80px 5% 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(108,63,232,0.18) 0%, transparent 70%),
                radial-gradient(ellipse 50% 50% at 75% 30%, rgba(0,212,255,0.1) 0%, transparent 65%),
                radial-gradient(ellipse 40% 40% at 85% 75%, rgba(255,60,172,0.08) 0%, transparent 60%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(108,63,232,0.07) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(108,63,232,0.07) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove { 0%{transform:translateY(0)} 100%{transform:translateY(50px)} }

.hero-content {
    position: relative;
    max-width: 620px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108,63,232,0.15);
    border: 1px solid rgba(108,63,232,0.4);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 24px;
    animation: fadeUp .6s ease both;
}

.hero-badge::before { content:'✦'; animation: spin 3s linear infinite; display:inline-block; }
@keyframes spin { to {transform:rotate(360deg)} }

.hero h1 {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(36px, 5.5vw, 62px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    animation: fadeUp .7s .1s ease both;
}

.hero h1 .highlight {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 36px;
    animation: fadeUp .7s .2s ease both;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeUp .7s .3s ease both;
}

.hero-visual {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.floating-cards {
    position: relative;
    width: 380px;
    height: 380px;
}

.float-card {
    position: absolute;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.float-card:nth-child(1) { top: 40px; right: 0; width: 200px; animation: float1 4s ease-in-out infinite; }
.float-card:nth-child(2) { bottom: 60px; right: 20px; width: 220px; animation: float2 5s ease-in-out infinite; }
.float-card:nth-child(3) { top: 160px; left: 0; width: 180px; animation: float3 4.5s ease-in-out infinite; }

@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }
@keyframes float3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

.card-icon { width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0; }
.float-card .info { display:flex;flex-direction:column; }
.float-card .info span:first-child { font-size:12px;color:var(--muted);font-weight:600; }
.float-card .info span:last-child { font-size:14px;font-weight:700;color:var(--text); }

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

/* ===== Stats Section ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item {
    background: var(--bg2);
    padding: 28px 20px;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: var(--accent);
}

.stat-item span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

/* ===== Section Title ===== */
.section {
    padding: 70px 5%;
}

.sec-title {
    text-align: center;
    margin-bottom: 48px;
}

.sec-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.sec-title h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 800;
}

/* ===== Categories Section ===== */
.cats {
    padding: 60px 5%;
    background: var(--bg2);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.cat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.cat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(108,63,232,0.2);
}

.cat-card .cat-emoji {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.cat-card p {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

/* ===== Products Section ===== */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.prod-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
    position: relative;
}

.prod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.prod-img {
    height: 160px;
    background: var(--card2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    position: relative;
    overflow: hidden;
}

.prod-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(21,21,42,0.8));
}

.badge-new, .badge-sale {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

.badge-new { background: var(--accent); color: var(--bg); }
.badge-sale { background: var(--accent2); color: #fff; }

.prod-info {
    padding: 16px;
}

.prod-info h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.prod-info .brand {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 10px;
}

.prod-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-size: 18px;
    font-weight: 900;
    color: var(--accent);
}

.old-price {
    font-size: 12px;
    color: var(--muted);
    text-decoration: line-through;
}

/* ===== Brands Section ===== */
.brands {
    padding: 50px 5%;
    background: var(--bg2);
}

.brand-track {
    display: flex;
    gap: 24px;
    overflow: hidden;
}

.brand-scroll {
    display: flex;
    gap: 24px;
    animation: scroll 20s linear infinite;
    flex-shrink: 0;
}

@keyframes scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

.brand-pill {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}

.brand-pill:hover { color: var(--accent); border-color: var(--accent); }

/* ===== Features Section ===== */
.features {
    padding: 70px 5%;
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 22px;
    transition: border-color .2s;
}

.feat-card:hover { border-color: var(--primary); }

.feat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.feat-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.feat-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

/* ===== Promo Banner ===== */
.promo {
    margin: 0 5% 60px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a0a5e 50%, #0a1040 100%);
    border-radius: 24px;
    padding: 50px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(108,63,232,0.4);
}

.promo::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,255,0.12), transparent 70%);
    top: -100px;
    left: -100px;
}

.promo-text {
    position: relative;
}

.promo-text h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    margin-bottom: 10px;
}

.promo-text p {
    font-size: 15px;
    color: rgba(240,238,255,0.7);
}

.promo-code {
    background: rgba(0,212,255,0.1);
    border: 1.5px dashed var(--accent);
    border-radius: 12px;
    padding: 14px 24px;
    text-align: center;
    flex-shrink: 0;
}

.promo-code span {
    display: block;
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 6px;
}

.promo-code strong {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #fff;
}

/* ===== Footer ===== */
footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 50px 5% 30px;
}

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

.footer-brand p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
    margin: 14px 0 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}

.social-btn:hover { border-color: var(--primary); background: rgba(108,63,232,0.15); }

.footer-col h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--muted);
    font-size: 14px;
    transition: color .2s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-btns {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .section {
        padding: 50px 5%;
    }
    .promo {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .promo-text h2 {
        font-size: 24px;
    }
    .promo-code {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }
    .stat-item {
        padding: 20px 15px;
    }
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prod-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 30px;
    }
    .hero p {
        font-size: 15px;
    }
    .btn-primary, .btn-outline {
        padding: 12px 24px;
        font-size: 14px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
    }
}
