*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Tajawal', sans-serif; background: #f0f2f5; color: #333; line-height: 1.7; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
[dir="rtl"] { text-align: right; }
[dir="ltr"] { text-align: left; }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ═══ شريط اللغة ═══ */
.lang-bar { background: #1a1a2e; color: #fff; text-align: center; padding: 8px; font-size: 0.95em; }
.lang-bar a { color: #ccc; margin: 0 8px; transition: .3s; }
.lang-bar a.active { color: #f1c40f; font-weight: 700; }
.lang-bar a:hover { color: #fff; }

/* ═══ شريط الثقة ═══ */
.trust-bar { background: linear-gradient(90deg, #0f3460, #16213e); color: #fff; display: flex; justify-content: center; gap: 30px; padding: 12px 20px; flex-wrap: wrap; font-size: 0.95em; }
.trust-bar i { color: #f1c40f; margin-inline-end: 6px; }

/* ═══ Breadcrumb ═══ */
.breadcrumb { background: #fff; padding: 15px 0; border-bottom: 1px solid #eee; font-size: 0.95em; }
.breadcrumb a { color: #667eea; font-weight: 600; transition: color 0.3s; }
.breadcrumb a:hover { color: #764ba2; }
.breadcrumb .separator { margin: 0 10px; color: #ccc; font-size: 0.8em; }
.breadcrumb .current { color: #1a1a2e; font-weight: 700; }

/* ═══ Hero Section ═══ */
.hero-section { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 80px 20px; text-align: center; }
.hero-title { font-size: 2.8em; font-weight: 800; margin-bottom: 15px; }
.hero-subtitle { font-size: 1.2em; opacity: 0.95; margin-bottom: 30px; max-width: 700px; margin-inline: auto; }
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 30px; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.stat-item i { font-size: 2em; color: #f1c40f; }
.stat-item span { font-size: 1.8em; font-weight: 800; }
.stat-item small { font-size: 0.9em; opacity: 0.9; }

/* ═══ Category Hero ═══ */
.category-hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 60px 20px; text-align: center; }
.category-hero.small { padding: 40px 20px; }
.category-hero-image { width: 120px; height: 120px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; border: 4px solid rgba(255,255,255,0.3); }
.category-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.category-hero-icon { width: 120px; height: 120px; margin: 0 auto 20px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 3.5em; backdrop-filter: blur(10px); }
.category-hero h1 { font-size: 2.5em; font-weight: 800; margin-bottom: 15px; }
.category-hero.small h1 { font-size: 2em; }
.category-desc { font-size: 1.1em; opacity: 0.95; max-width: 600px; margin: 0 auto 15px; }
.category-count { display: inline-block; background: rgba(255,255,255,0.2); padding: 6px 18px; border-radius: 20px; font-weight: 600; backdrop-filter: blur(10px); }

/* ═══ Section Title ═══ */
.section-title { text-align: center; font-size: 2em; font-weight: 800; color: #1a1a2e; margin-bottom: 40px; }
.section-title i { color: #f1c40f; margin-inline-end: 10px; }

/* ═══ الفئات الرئيسية ═══ */
.categories-section { padding: 60px 0; background: #fff; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.category-card { display: flex; align-items: center; background: #fff; border-radius: 15px; padding: 20px; box-shadow: 0 3px 15px rgba(0,0,0,0.06); transition: all 0.3s; border: 2px solid transparent; gap: 15px; }
.category-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-color: #667eea; }
.category-image { width: 80px; height: 80px; border-radius: 15px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, #667eea, #764ba2); }
.category-image img { width: 100%; height: 100%; object-fit: cover; }
.category-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2em; }
.category-info { flex: 1; }
.category-info h3 { color: #1a1a2e; font-size: 1.15em; margin-bottom: 8px; }
.category-meta { display: flex; gap: 15px; font-size: 0.85em; color: #888; flex-wrap: wrap; }
.category-meta i { color: #667eea; margin-inline-end: 4px; }
.category-arrow { color: #667eea; font-size: 1.2em; opacity: 0; transition: opacity 0.3s; }
.category-card:hover .category-arrow { opacity: 1; }

/* ═══ الفئات الفرعية ═══ */
.subcategories-section { padding: 60px 0; background: #f8f9fa; }
.subcategories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.subcategory-card { display: flex; align-items: center; background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 3px 15px rgba(0,0,0,0.06); transition: all 0.3s; border: 2px solid transparent; gap: 15px; }
.subcategory-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-color: #667eea; }
.subcategory-image { width: 70px; height: 70px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, #f39c12, #e67e22); }
.subcategory-image img { width: 100%; height: 100%; object-fit: cover; }
.subcategory-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5em; }
.subcategory-info { flex: 1; }
.subcategory-info h3 { color: #1a1a2e; font-size: 1.05em; margin-bottom: 5px; }
.subcategory-count { color: #888; font-size: 0.85em; }
.subcategory-count::before { content: "📦 "; }
.subcategory-arrow { color: #667eea; font-size: 1em; opacity: 0; transition: opacity 0.3s; }
.subcategory-card:hover .subcategory-arrow { opacity: 1; }

/* ═══ شريط الترتيب ═══ */
.sort-bar { background: #fff; padding: 15px 0; border-bottom: 1px solid #eee; }
.sort-bar .container { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.sort-label { color: #666; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sort-label i { color: #667eea; }
.sort-options { display: flex; gap: 8px; flex-wrap: wrap; }
.sort-btn { padding: 6px 15px; background: #f0f0f0; border-radius: 20px; color: #555; font-size: 0.9em; font-weight: 600; transition: all 0.3s; }
.sort-btn:hover { background: #e0e0e0; }
.sort-btn.active { background: #667eea; color: #fff; }

/* ═══ المنتجات ═══ */
.products-section { padding: 50px 0; }
.latest-section { padding: 60px 0; background: #f8f9fa; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,0.06); transition: all 0.3s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.product-image { position: relative; aspect-ratio: 1/1; background: #f8f8f8; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 3em; }
.product-badge { position: absolute; top: 10px; inset-inline-end: 10px; background: #e74c3c; color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 0.85em; font-weight: 700; }
.product-info { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.product-category { display: block; font-size: 0.8em; color: #667eea; font-weight: 600; margin-bottom: 5px; }
.product-name { color: #1a1a2e; font-size: 1.05em; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.product-desc-short { color: #666; font-size: 0.85em; margin-bottom: 10px; line-height: 1.5; }
.product-price { margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-price .current { color: #e74c3c; font-size: 1.3em; font-weight: 800; }
.product-price .old { color: #999; text-decoration: line-through; font-size: 0.95em; }
.product-action { margin-top: auto; }
.btn-view { display: inline-block; padding: 8px 15px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border-radius: 20px; font-size: 0.85em; font-weight: 600; transition: all 0.3s; }
.product-card:hover .btn-view { background: linear-gradient(135deg, #764ba2, #667eea); }

/* ═══ لماذا نحن ═══ */
.why-us-section { padding: 60px 0; background: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.why-card { text-align: center; padding: 30px 20px; background: #f8f9fa; border-radius: 15px; transition: all 0.3s; }
.why-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.why-icon { width: 70px; height: 70px; margin: 0 auto 15px; background: linear-gradient(135deg, #667eea, #764ba2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6em; }
.why-card h4 { color: #1a1a2e; font-size: 1.1em; margin-bottom: 10px; }
.why-card p { color: #666; font-size: 0.9em; line-height: 1.6; }

/* ═══ Empty State ═══ */
.empty-state { text-align: center; padding: 60px 20px; color: #888; }
.empty-state i { font-size: 4em; color: #ddd; margin-bottom: 20px; display: block; }
.empty-state p { font-size: 1.1em; margin-bottom: 20px; }
.btn-back { display: inline-block; padding: 10px 25px; background: #667eea; color: #fff; border-radius: 25px; font-weight: 600; transition: all 0.3s; }
.btn-back:hover { background: #764ba2; transform: translateY(-2px); }

/* ═══ WhatsApp Float ═══ */
.whatsapp-float { position: fixed; bottom: 25px; inset-inline-end: 25px; width: 60px; height: 60px; background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); z-index: 999; transition: all 0.3s; animation: whatsappPulse 2s infinite; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7); }
.whatsapp-tooltip { position: absolute; inset-inline-end: 70px; background: #333; color: #fff; padding: 8px 15px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }
@keyframes whatsappPulse { 0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); } 50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.2); } }

/* ═══ Footer ═══ */
.footer-enhanced { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #ccc; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 30px; }
.footer-col h3 { color: #fff; font-size: 1.5em; margin-bottom: 15px; }
.footer-col h4 { color: #f1c40f; font-size: 1.1em; margin-bottom: 15px; }
.footer-col p { margin-bottom: 10px; line-height: 1.8; }
.footer-col a { color: #ccc; transition: color 0.3s; }
.footer-col a:hover { color: #f1c40f; }
.footer-col i { color: #f1c40f; margin-inline-end: 8px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #888; }

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
    .hero-title { font-size: 2em; }
    .hero-subtitle { font-size: 1em; }
    .hero-stats { gap: 20px; }
    .stat-item span { font-size: 1.4em; }
    .section-title { font-size: 1.5em; }
    .category-hero h1 { font-size: 1.8em; }
    .categories-grid, .subcategories-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .product-name { font-size: 0.95em; }
    .product-price .current { font-size: 1.1em; }
    .sort-bar .container { flex-direction: column; align-items: flex-start; }
    .whatsapp-float { width: 55px; height: 55px; font-size: 28px; bottom: 20px; inset-inline-end: 20px; }
    .whatsapp-tooltip { display: none; }
}