/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    direction: rtl;
}

/* شريط الوقت العلوي */
.top-bar {
    background-color: #2c3e50;
    color: white;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.time-display {
    font-weight: 600;
}

.contact-info span {
    margin-right: 15px;
}

.contact-info i {
    margin-left: 5px;
}

/* شريط التنقل */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    background: linear-gradient(135deg, green,white,transparent,black);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

/* .logo i {
    font-size: 24px;
    color: white;
} */
.logo img {
    max-width: 50px;
    border-radius: 50%;
}

.store-name h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.store-name p {
    font-size: 12px;
    color: #7f8c8d;
}

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

.nav-links li {
    margin-right: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
    
}

.nav-links a:hover,
.nav-links a.active {
    color: red;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #000;
    bottom: -5px;
    right: 0;
    border-radius: 2px;
   
}

.nav-icons {
    display: flex;
    align-items: center;
}

.whatsapp-btn, .instagram-btn, .cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.instagram-btn {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.cart-btn {
    background-color: green;
    color: white;
    border: none;
    cursor: pointer;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background-color: #e74c3c;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: green;
    cursor: pointer;
}

/* قسم الهيرو */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 5%;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
    background: linear-gradient(green,white,transparent,black);
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
}

.hero h2 {
    font-size: 36px;
    color: red;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    /* color: #555; */
    color: red;
    margin-bottom: 25px;
    max-width: 500px;
}

.cta-btn {
    display: inline-block;
    background-color: red;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-btn:hover {
    background-color: green;
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* قسم المنتجات */
.products-section {
    padding: 60px 5%;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #000;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2px;
}

.filters {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #f1f1f1;
    border: none;
    padding: 10px 20px;
    margin: 5px 10px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: green;
    color: white;
}

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

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}


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

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
    height: 45px;
    overflow: hidden;
}

.product-price {
    font-size: 20px;
    color: #e74c3c;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-buttons {
    display: flex;
    justify-content: space-between;
}

.add-to-cart, .view-details {
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.add-to-cart {
    background-color: #2ecc71;
    color: white;
}

.add-to-cart:hover {
    background-color: #27ae60;
}

.view-details {
    background-color: #f1f1f1;
    color: #333;
}

.view-details:hover {
    background-color: #ddd;
}

/* سلة التسوق الجانبية */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 350px;
    height: 100%;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: left 0.5s ease;
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #3498db;
    color: white;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

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

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    margin-left: 15px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #e74c3c;
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
}

.empty-cart-msg {
    text-align: center;
    color: #7f8c8d;
    padding: 40px 0;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clear-cart, .checkout-btn {
    padding: 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.clear-cart {
    background-color: #f1f1f1;
    color: #333;
}

.clear-cart:hover {
    background-color: #ddd;
}

.checkout-btn {
    background-color: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-btn i {
    margin-left: 8px;
}

.instagram-checkout {
    background: linear-gradient(45deg, #405DE6, #C13584);
}

/* الفوتر */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-logo .logo {
    width: 40px;
    height: 40px;
}

.social-icons {
    display: flex;
    margin-bottom: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.twitter-btn {
    background-color: #1DA1F2;
}

.email-btn {
    background-color: #7f8c8d;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 14px;
}
/* نافذة تفاصيل الطلب المنبثقة */
.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.order-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #000;
}

.order-modal-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.order-items-list {
    margin: 20px 0;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item-name {
    flex: 2;
    font-weight: 600;
}

.order-item-qty {
    flex: 1;
    text-align: center;
}

.order-item-price {
    flex: 1;
    text-align: left;
    color: #e67e22;
    font-weight: 600;
}

.order-total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    display: flex;
    justify-content: space-between;
    font-size: 1.2em;
    font-weight: bold;
    color: #27ae60;
}

.order-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.order-modal-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s;
}

.order-modal-buttons button:hover {
    transform: scale(1.02);
}

.confirm-order {
    background-color: #e4405f;
    color: white;
}

.cancel-order {
    background-color: #95a5a6;
    color: white;
}
/* new */
/* إضافة أنماط لأزرار النسخ */
.copy-order-btn {
    background-color: #3b5998;
    color: white;
}

.copy-order-btn:hover {
    background-color: #2d4373;
}

.order-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.order-modal-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s;
    min-width: 120px;
}

.copy-success {
    background-color: #27ae60;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    margin-top: 10px;
    animation: fadeOut 2s ease;
    font-size: 14px;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

/* تصميم متجاوب */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        padding: 10px;
    }
    
    .contact-info {
        margin-top: 5px;
    }
    
    .cart-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .filters {
        justify-content: center;
    }
    
    .filter-btn {
        margin: 5px;
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .product-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .add-to-cart, .view-details {
        width: 100%;
    }
}