/* منع ظهور الخط عند النقر على العناصر */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none !important;
}

button, 
a, 
input, 
.product-card,
.category-btn,
.add-to-cart-btn {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none !important;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: black;
}

.delivery-options {
    display: flex;
    gap: 10px;
}

.delivery-options button {
    padding: 8px 16px;
    border: 2px solid #FF4B2B;
    background: none;
    color: #FF4B2B;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.delivery-options button.active {
    background: #FF4B2B;
    color: white;
}

.address-selector {
    flex: 1;
    margin: 0 20px;
    position: relative;
}

.address-selector input {
    width: 100%;
    padding: 8px 35px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.address-selector i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.language-cart {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switch {
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
}

.cart-wrapper {
    position: relative;
}

.cart-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    position: relative;
}

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

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.logo-container {
    text-align: center;
    padding: 20px 0;
}

.main-logo {
    max-width: 150px;
    height: auto;
}

.categories-nav {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 64px;
    z-index: 900;
}

.search-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

.categories-scroll {
    overflow-x: auto;
    flex: 1;
    white-space: nowrap;
    padding: 0 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    margin-right: 12px;
    cursor: pointer;
    color: #666;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s;
}

.category-btn.active {
    background: #FF4B2B;
    color: white;
}

.products-grid {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.menu-section h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff4d4d;
}

.menu-items {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.menu-items::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.product-card {
    min-width: 280px; /* ثابت عرض البطاقة */
    flex: 0 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

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

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

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

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

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 160px;
}

.product-info h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #333;
}

.product-info .description {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.4;
    flex-grow: 1;
}

.product-info .price {
    font-size: 18px;
    font-weight: bold;
    color: #FF4B2B;
    margin: 0 0 15px 0;
}

.add-to-cart-btn {
    width: calc(100% - 30px);
    padding: 12px 20px;
    background: #FF4B2B;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    position: absolute;
    bottom: 15px;
    left: 15px;
    text-align: center;
}

.add-to-cart-btn:hover {
    background: #ff3311;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #050404;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 1001;
}

.cart-sidebar.active {
    right: 0;
}

/* Product Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1;
}

.modal-image {
    width: 100%;
    height: 250px;
    position: relative;
}

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

.modal-details {
    padding: 20px;
}

.modal-title {
    font-size: 20px;
    margin: 0 0 10px;
    color: #333;
}

.modal-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.quantity-section {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 16px;
}

.quantity {
    width: 40px;
    text-align: center;
    margin: 0 10px;
}

.total-price {
    font-size: 18px;
    font-weight: bold;
    color: #FF4B2B;
}

.options-section {
    margin: 20px 0;
}

.option-item {
    margin: 10px 0;
}

.notes-section {
    margin: 20px 0;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    min-height: 80px;
}

.add-btn {
    width: 100%;
    padding: 12px;
    background: #FF4B2B;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    transition: background 0.3s;
}

.add-btn:hover {
    background: #ff3615;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-btn:hover {
    opacity: 1;
}

.scroll-btn.prev {
    left: 10px;
}

.scroll-btn.next {
    right: 10px;
}

@media (max-width: 768px) {
    .menu-items {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-info h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .menu-items {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 200px;
    }
}

.main-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 15px;
}

.footer-description {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

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

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

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

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

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

.social-links a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ff4d4d;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.working-hours li {
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #ccc;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }
}
