/* تحسينات الموبايل - Mobile View Enhancements */
/* تصميم بسيط ونظيف مثل الصورة المرجعية */

/* ========================================
   إخفاء عناصر الموبايل على Desktop
======================================== */
.mobile-simple-menu {
    display: none !important;
}

@media (min-width: 769px) {
    .mobile-simple-menu {
        display: none !important;
    }
}

/* ========================================
   تحسينات الموبايل
======================================== */
@media (max-width: 768px) {
    /* إخفاء القائمة العادية على الموبايل */
    .nav {
        display: none !important;
    }
    
    /* الهيدر */
    .header {
        padding: 20px 0 10px;
        background: #ffffff;
        box-shadow: none;
        border-bottom: none;
    }
    
    .header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    /* اللوجو */
    .logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .logo img {
        height: 70px !important;
        width: auto;
    }
    
    .logo h1 {
        font-size: 16px !important;
        font-weight: bold;
        color: #333333;
        margin: 0;
        line-height: 1.4;
    }
    
    /* ========================================
       القائمة البسيطة للموبايل
    ======================================== */
    .mobile-simple-menu {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 15px;
    }
    
    /* روابط القائمة */
    .mobile-simple-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .mobile-simple-nav a {
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        color: #555555;
        padding: 8px 0;
        transition: color 0.3s ease;
        border: none;
        background: none;
        position: relative;
    }
    
    .mobile-simple-nav a:hover {
        color: #2196F3;
    }
    
    .mobile-simple-nav a.active {
        color: #2196F3;
        font-weight: 600;
    }
    
    /* ========================================
       سلة التسوق
    ======================================== */
    .mobile-simple-cart {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .mobile-simple-cart a {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }
    
    .mobile-simple-cart .cart-icon-img {
        width: 40px;
        height: 40px;
        color: #333333;
        transition: color 0.3s ease;
    }
    
    .mobile-simple-cart a:hover .cart-icon-img {
        color: #2196F3;
    }
    
    /* عداد السلة - دائرة حمراء */
    .mobile-simple-cart .cart-badge {
        position: absolute;
        top: -10px;
        right: -10px;
        background: #e53935;
        color: white;
        font-size: 14px;
        font-weight: bold;
        min-width: 26px;
        height: 26px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(229, 57, 53, 0.5);
        padding: 0 4px;
    }
    
    /* ========================================
       باقي تنسيقات الموبايل
    ======================================== */
    
    /* Hero Section */
    .hero {
        padding: 40px 20px;
        min-height: auto;
    }
    
    .hero h1,
    .hero h2 {
        font-size: 26px;
        line-height: 1.4;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    /* قسم قصة سومر */
    .about-section {
        padding: 40px 0;
    }
    
    .about-logo {
        width: 70px;
        height: 70px;
    }
    
    .about-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .about-text {
        font-size: 15px;
        line-height: 1.8;
    }
    
    .about-intro {
        font-size: 16px;
    }
    
    .about-closing {
        font-size: 15px;
    }
    
    /* التصنيفات */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        padding: 25px 20px;
    }
    
    .category-icon {
        font-size: 45px;
    }
    
    .category-card h3 {
        font-size: 18px;
    }
    
    .category-card p {
        font-size: 14px;
    }
    
    /* المنتجات */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-image {
        height: 280px;
    }
    
    .product-name {
        font-size: 17px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    /* السلة */
    .cart-container {
        padding: 20px;
        margin: 20px 0;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .cart-item-image img {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-quantity {
        flex-direction: row;
        gap: 8px;
        margin-top: 10px;
    }
    
    .cart-item-quantity button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .cart-item-quantity input {
        width: 50px;
        font-size: 16px;
    }
    
    .cart-item-remove {
        margin-top: 10px;
        width: 100%;
    }
    
    .cart-summary {
        padding: 20px;
    }
    
    /* صفحة الطلب */
    .checkout-container {
        padding: 20px;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* صفحة الاتصال */
    .contact-hero h1 {
        font-size: 28px;
    }
    
    .contact-content {
        padding: 30px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    .contact-info,
    .map-container {
        padding: 20px;
    }
    
    .contact-info h2,
    .map-container h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .info-item {
        padding: 18px;
        margin-bottom: 18px;
    }
    
    .info-item .icon {
        font-size: 26px;
    }
    
    .info-item h3 {
        font-size: 17px;
    }
    
    .info-item p {
        font-size: 14px;
    }
    
    .map-wrapper {
        height: 280px;
    }
    
    /* الفوتر */
    .footer {
        padding: 25px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-section {
        padding: 0 15px;
    }
    
    .footer-section h4 {
        font-size: 17px;
        margin-bottom: 12px;
    }
    
    .footer-section p,
    .footer-section ul {
        font-size: 14px;
    }
    
    .footer-section ul {
        list-style: none;
        padding: 0;
    }
    
    .footer-bottom {
        padding-top: 15px;
        font-size: 12px;
    }
    
    /* Section */
    .section {
        padding: 35px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* ========================================
   تحسينات للشاشات الصغيرة جداً
======================================== */
@media (max-width: 480px) {
    .logo img {
        height: 55px !important;
    }
    
    .logo h1 {
        font-size: 14px !important;
    }
    
    .mobile-simple-nav {
        gap: 18px;
    }
    
    .mobile-simple-nav a {
        font-size: 15px;
    }
    
    .mobile-simple-cart .cart-icon-img {
        width: 34px;
        height: 34px;
    }
    
    .mobile-simple-cart .cart-badge {
        min-width: 22px;
        height: 22px;
        font-size: 12px;
        top: -8px;
        right: -8px;
    }
    
    .hero h1,
    .hero h2 {
        font-size: 22px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .product-name {
        font-size: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .about-title {
        font-size: 18px;
    }
    
    .about-text {
        font-size: 14px;
    }
}

/* ========================================
   تحسين السكرول
======================================== */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
    }
}
