/* ملف أنماط Rozza Store - الإصدار المحدث مع نظام السلة والدفع */

/* إعادة التعيين والأنماط الأساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    color: #333;
    background-color: #fefefe;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* التمرير السلس */
html {
    scroll-behavior: smooth;
}

/* شريط التنقل */
.navbar {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: 'El Messiri', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #8B4513;
    text-decoration: none;
}

.logo span {
    color: #D2691E;
}

.tagline {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #8B4513;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover, .nav-link.active {
    background-color: #f9f5f0;
    color: #6B3410;
}

.cart-btn, .admin-btn, .checkout-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.cart-btn {
    background-color: #8B4513;
    color: white;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background-color: #D2691E;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.admin-btn {
    background-color: #f0f0f0;
    color: #8B4513;
}

.checkout-btn {
    background-color: #D2691E;
    color: white;
}

.cart-btn:hover, .checkout-btn:hover {
    background-color: #6B3410;
}

.admin-btn:hover {
    background-color: #e0e0e0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #8B4513;
    cursor: pointer;
}

/* القسم الرئيسي */
.hero {
    background: linear-gradient(135deg, #f9f5f0 0%, #f0e6d6 100%);
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="%238B4513" fill-opacity="0.03" d="M0,0 L100,0 L100,100 Z"/></svg>');
    background-size: cover;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    width: 55%;
}

.hero-title {
    font-family: 'El Messiri', sans-serif;
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #D2691E;
    margin-bottom: 20px;
}

.hero-description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.hero-btn {
    background-color: #8B4513;
    color: rgb(247, 243, 243);
    padding: 12px 25px;
    border-radius: 8px; 
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.hero-btn.secondary-btn {
    background-color: transparent;
    color: #8B4513;
    border: 2px solid #8B4513;
}

.hero-btn:hover {
    background-color: #6B3410;
    transform: translateY(-2px);
}

.hero-btn.secondary-btn:hover {
    background-color: #8B4513;
    color: white;
}

.hero-image {
    width: 20%; 
}

.image-frame {
    border: 8px solid white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
    overflow: hidden;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* قسم البحث */
.search-section {
    background-color: white;
    padding: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-box {
    display: flex;
    background-color: #f9f5f0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e6d9c9;
}

.search-icon {
    padding: 15px;
    color: #8B4513;
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    padding: 15px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background-color: #8B4513;
    color: white;
    border: none;
    padding: 15px 30px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background-color: #6B3410;
}

.search-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-tag {
    background-color: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.search-tag:hover {
    background-color: #e0e0e0;
}

/* قسم المنتجات */
.products {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-title {
    font-family: 'El Messiri', sans-serif;
    font-size: 2rem;
    color: #8B4513;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.products-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: white;
    border: 2px solid #e6d9c9;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: #8B4513;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #8B4513;
    color: white;
    border-color: #8B4513;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 250px;
    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-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #8B4513;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #D2691E;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.3rem;
    color: #8B4513;
    font-weight: 700;
}

.old-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.product-btn {
    width: 100%;
    padding: 12px;
    background-color: #8B4513;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.product-btn:hover {
    background-color: #6B3410;
}

.view-all {
    text-align: center;
}

.view-all-btn {
    background-color: transparent;
    border: 2px solid #8B4513;
    color: #8B4513;
    padding: 12px 30px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.view-all-btn:hover {
    background-color: #8B4513;
    color: white;
}

/* قسم العروض */
.offers {
    padding: 80px 0;
    background-color: white;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.offer-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 300px;
}

.offer-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.offer-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: 'El Messiri', sans-serif;
}

.offer-overlay p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.offer-expiry {
    color: #D2691E;
    font-weight: 600;
    margin-bottom: 15px;
}

.offer-btn {
    background-color: #8B4513;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.3s;
}

.offer-btn:hover {
    background-color: #6B3410;
}

/* قسم عن المتجر */
.about {
    padding: 80px 0;
    background-color: #f9f5f0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    color: #8B4513;
    font-size: 1.2rem;
}

.feature span {
    color: #333;
    font-weight: 500;
}

.stats {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 5px;
}

.stat p {
    color: #666;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* قسم التواصل */
.contact {
    padding: 80px 0;
    background-color: white;
}

.contact-content {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.info-card {
    background-color: #f9f5f0;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: #8B4513;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
}

.info-card h3 {
    color: #8B4513;
    margin-bottom: 10px;
    font-family: 'El Messiri', sans-serif;
}

.info-card p {
    color: #666;
    margin-bottom: 15px;
}

.contact-btn {
    display: inline-block;
    background-color: #8B4513;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-btn.insta-btn {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.contact-btn:hover {
    background-color: #6B3410;
    transform: translateY(-2px);
}

.contact-form {
    flex: 1;
    background-color: #f9f5f0;
    padding: 30px;
    border-radius: 12px;
}

.contact-form h3 {
    color: #8B4513;
    margin-bottom: 20px;
    font-family: 'El Messiri', sans-serif;
    font-size: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #8B4513;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background-color: #6B3410;
}

/* الفوتر */
.footer {
    background-color: #2c1810;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
}

.footer-brand p {
    color: #ccc;
    margin: 15px 0;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #8B4513;
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h3 {
    color: white;
    margin-bottom: 15px;
    font-family: 'El Messiri', sans-serif;
    font-size: 1.2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #8B4513;
    padding-right: 5px;
}

.footer-admin-btn {
    background-color: #8B4513;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    margin-top: 10px;
    transition: all 0.3s;
}

.footer-admin-btn:hover {
    background-color: #6B3410;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: #8B4513;
}

.footer-newsletter h3 {
    color: white;
    margin-bottom: 15px;
    font-family: 'El Messiri', sans-serif;
    font-size: 1.2rem;
}

.footer-newsletter p {
    color: #ccc;
    margin-bottom: 15px;
}

.footer-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-newsletter input {
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-family: 'Cairo', sans-serif;
}

.footer-newsletter button {
    background-color: #8B4513;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
}

.footer-newsletter button:hover {
    background-color: #6B3410;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #ccc;
}

.footer-policy {
    display: flex;
    gap: 20px;
}

.footer-policy a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-policy a:hover {
    color: #8B4513;
}

/* زر العودة للأعلى */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: #8B4513;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top:hover {
    background-color: #6B3410;
    transform: translateY(-3px);
}

/* نافذة الدفع والطلب */
.modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.checkout-modal h2 {
    color: #8B4513;
    margin-bottom: 20px;
    font-family: 'El Messiri', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-section {
    background-color: #f9f5f0;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.checkout-section h3 {
    color: #8B4513;
    margin-bottom: 15px;
    font-family: 'El Messiri', sans-serif;
}

.cart-summary {
    margin-bottom: 15px;
}

.checkout-item-summary {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e6d9c9;
}

.checkout-item-name {
    color: #333;
}

.checkout-item-price {
    color: #8B4513;
    font-weight: 600;
}

.cart-total {
    text-align: left;
    font-size: 1.2rem;
    color: #8B4513;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e6d9c9;
}

.payment-instructions {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.vodafone-cash-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f0f7ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-right: 4px solid #8B4513;
}

.vodafone-cash-info i {
    font-size: 2rem;
    color: #8B4513;
}

.payment-steps {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e6d9c9;
}

.payment-steps h4 {
    color: #8B4513;
    margin-bottom: 15px;
}

.payment-steps ol {
    padding-right: 20px;
}

.payment-steps li {
    margin-bottom: 10px;
    color: #333;
}

.payment-steps strong {
    color: #8B4513;
}

.payment-note {
    background-color: #fff9e6;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-right: 4px solid #D2691E;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.payment-note i {
    color: #D2691E;
    font-size: 1.2rem;
    margin-top: 2px;
}

.checkout-actions {
    text-align: center;
    margin-top: 30px;
}

.checkout-submit-btn {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.checkout-submit-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.checkout-disclaimer {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* نافذة سلة المشتريات المنبثقة - الأنماط المضافة */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 80px;
}

.cart-modal.active {
    display: flex;
}

.cart-modal-content {
    background-color: white;
    width: 100%;
    max-width: 450px;
    height: calc(100vh - 80px);
    border-radius: 15px 0 0 15px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f5f0;
    border-radius: 15px 0 0 0;
}

.cart-header h3 {
    margin: 0;
    color: #8B4513;
    font-family: 'El Messiri', sans-serif;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-cart-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart-message {
    text-align: center;
    padding: 50px 20px;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.empty-cart-message i {
    font-size: 4rem;
    color: #ddd;
}

.empty-cart-message p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.browse-products-btn {
    background-color: #8B4513;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.browse-products-btn:hover {
    background-color: #6B3410;
    transform: translateY(-2px);
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
    transition: background-color 0.3s;
}

.cart-item:hover {
    background-color: #f9f9f9;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f5f5f5;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.cart-item:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: #8B4513;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 5px 10px;
}

.quantity-btn {
    background: none;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: white;
    color: #8B4513;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.quantity-btn:hover {
    background-color: #8B4513;
    color: white;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: #333;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.remove-item-btn:hover {
    background-color: rgba(244, 67, 54, 0.1);
}

.cart-item-total {
    font-weight: 600;
    color: #8B4513;
    font-size: 1.1rem;
    min-width: 80px;
    text-align: left;
}

.cart-footer {
    border-top: 1px solid #eee;
    padding: 20px;
    background-color: #f9f5f0;
    border-radius: 0 0 0 15px;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

#cartTotalAmount {
    color: #8B4513;
    font-size: 1.4rem;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.continue-shopping-btn {
    flex: 1;
    padding: 12px;
    background-color: white;
    color: #8B4513;
    border: 2px solid #8B4513;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.continue-shopping-btn:hover {
    background-color: #f9f5f0;
}

#proceedToCheckoutBtn {
    flex: 1;
    padding: 12px;
    background-color: #8B4513;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#proceedToCheckoutBtn:hover {
    background-color: #6B3410;
    transform: translateY(-2px);
}

/* أنماط الإشعارات */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 90%;
    min-width: 250px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    background-color: #4CAF50;
}

.notification.info {
    background-color: #2196F3;
}

.notification.warning {
    background-color: #FF9800;
}

.notification.error {
    background-color: #F44336;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    margin-right: 10px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* أنماط خاصة لتسجيل الدخول ولوحة التحكم */
.login-modal, .admin-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.login-modal.active, .admin-panel.active {
    display: flex;
}

.login-box, .admin-container {
    background-color: white;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 25px;
    animation: modalSlideIn 0.3s ease-out;
}

.login-header, .admin-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-title, .admin-title {
    font-family: 'El Messiri', sans-serif;
    font-size: 1.6rem;
    color: #8B4513;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #666;
    font-size: 0.85rem;
}

.login-form {
    margin-bottom: 15px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #8B4513;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.login-btn:hover {
    background-color: #6B3410;
}

.login-error {
    color: #f44336;
    text-align: center;
    margin-top: 12px;
    display: none;
    font-size: 0.85rem;
}

.admin-credentials {
    background-color: #f9f5f0;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.8rem;
}

.admin-credentials h4 {
    color: #8B4513;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* تحسينات للجوال */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        padding: 10px 15px;
    }
    
    .nav-brand {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .nav-menu {
        width: 100%;
        flex-direction: column;
        display: none;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link, .admin-btn, .cart-btn, .checkout-btn {
        width: 100%;
        padding: 12px 15px;
        border-bottom: 1px solid rgba(139, 69, 19, 0.1);
        text-align: center;
        justify-content: center;
    }
    
    .cart-count {
        position: relative;
        top: auto;
        left: auto;
        margin-right: 5px;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        left: 15px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content, .hero-image {
        width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
        border-radius: 8px;
        margin: 10px 0;
    }
    
    .search-btn {
        width: 100%;
        border-radius: 8px;
    }
    
    .products-filter {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        margin: 0 2px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        width: 100%;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 20px;
    }
    
    .cart-modal-content {
        max-width: 100%;
        height: 80vh;
        border-radius: 15px 15px 0 0;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-item-image {
        width: 100%;
        height: 150px;
    }
    
    .cart-item-details {
        width: 100%;
    }
    
    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .cart-item-total {
        align-self: flex-end;
        text-align: left;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .notification {
        max-width: 85%;
        min-width: 200px;
        right: 10px;
        left: 10px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cart-modal-content {
        height: 85vh;
    }
}