:root {
    --primary-color: #8B1E1E;
    --accent-color: #D4AF37;
    --bg-light: #FBF8F5;
    --text-dark: #2C2C2C;
    --white: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Tajawal', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); direction: rtl; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

.header { background-color: var(--primary-color); color: var(--white); padding: 15px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; color: var(--accent-color); }
.nav-links a { color: var(--white); text-decoration: none; margin: 0 8px; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--accent-color); }
.udhiyah-link { background: var(--accent-color); color: #000 !important; padding: 5px 12px; border-radius: 6px; font-weight: bold !important; }
.admin-link { background: rgba(255,255,255,0.15); padding: 5px 12px; border-radius: 6px; }

.cart-icon { position: relative; cursor: pointer; font-size: 22px; }
#cart-count { position: absolute; top: -8px; left: -10px; background: var(--accent-color); color: #000; font-size: 12px; font-weight: bold; padding: 2px 6px; border-radius: 50%; }

.hero { background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('https://images.unsplash.com/photo-1544025162-d76694265947?q=80&w=1200') center/cover; height: 55vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); padding: 0 20px; }
.hero h1 { font-size: 34px; margin-bottom: 15px; }
.hero p { font-size: 17px; margin-bottom: 25px; color: #E3D5C8; }
.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background-color: var(--primary-color); color: var(--white); padding: 12px 25px; text-decoration: none; border-radius: 8px; font-weight: bold; border: 1px solid var(--accent-color); }
.btn-udhiyah-hero { background-color: var(--accent-color); color: #000; padding: 12px 25px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; }

.products-section { padding: 40px 0; }
.section-title { text-align: center; font-size: 28px; margin-bottom: 25px; color: var(--primary-color); }
.filter-buttons { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn { padding: 8px 16px; border: 1px solid var(--primary-color); background: var(--white); color: var(--primary-color); border-radius: 20px; cursor: pointer; font-weight: bold; }
.filter-btn.active, .filter-btn:hover { background: var(--primary-color); color: var(--white); }
.sacrifice-btn-tab { background: #d97706; color: #fff; border-color: #b45309; }
.sacrifice-btn-tab:hover { background: #b45309; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.product-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); display: flex; flex-direction: column; justify-content: space-between; }
.product-card img { width: 100%; height: 180px; object-fit: cover; }
.product-info { padding: 15px; }
.product-title { font-size: 18px; font-weight: 700; }
.rating-stars { color: #FFD700; margin: 5px 0; font-size: 14px; }
.product-desc { font-size: 13px; color: #666; margin-bottom: 10px; }
.product-price { font-size: 16px; font-weight: 800; color: var(--primary-color); margin-bottom: 12px; }
.add-to-cart-btn { width: 100%; padding: 10px; background: var(--primary-color); color: var(--white); border: none; border-radius: 6px; cursor: pointer; font-weight: bold; }

/* Sacrifice Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: none; justify-content: center; align-items: center; z-index: 300; }
.modal-overlay.open { display: flex; }
.sacrifice-modal-content { background: #fff; width: 90%; max-width: 650px; padding: 25px; border-radius: 12px; max-height: 90vh; overflow-y: auto; }
.sac-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.sac-tab-btn { flex: 1; padding: 10px; border: 1px solid #d97706; background: #fff; cursor: pointer; border-radius: 8px; font-weight: bold; }
.sac-tab-btn.active { background: #d97706; color: #fff; }

.sac-card-details h3 { color: var(--primary-color); margin-bottom: 15px; font-size: 20px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 5px; }
.form-group input, .form-group select { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 6px; }

.sac-info-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; background: #fffbeb; padding: 10px; border-radius: 6px; }
.badge-price { background: #d97706; color: #fff; padding: 4px 10px; border-radius: 20px; font-weight: bold; }

.sac-breakdown { background: #f9fafb; padding: 15px; border-radius: 8px; margin-bottom: 15px; border: 1px solid #e5e7eb; }
.sac-breakdown div { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 15px; }
.sac-grand-total { font-size: 18px !important; color: var(--primary-color); }

.sac-form input, .sac-form textarea { width: 100%; padding: 8px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 6px; }
.btn-whatsapp-sac { width: 100%; padding: 12px; background: #25D366; color: white; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 16px; }

/* Cart Styling */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; z-index: 150; }
.cart-drawer { position: fixed; top: 0; left: -400px; width: 360px; height: 100%; background: var(--white); z-index: 200; transition: 0.4s ease; display: flex; flex-direction: column; padding: 20px; overflow-y: auto; }
.cart-drawer.open { left: 0; }
.cart-drawer.open + .cart-overlay { display: block; }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.cart-items { margin: 15px 0; }
.cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.qty-btn { padding: 2px 8px; cursor: pointer; background: #ddd; border: none; border-radius: 4px; }

.price-breakdown { background: #f9f9f9; padding: 10px; border-radius: 8px; margin-bottom: 15px; font-size: 14px; }
.price-breakdown div { display: flex; justify-content: space-between; margin-bottom: 5px; }
.total-price { font-weight: bold; font-size: 16px; color: var(--primary-color); }

#order-form input, #order-form textarea, #order-form select { width: 100%; padding: 8px; margin-bottom: 8px; border: 1px solid #ccc; border-radius: 6px; }
.payment-method-box { background: #fff3e6; padding: 10px; border-radius: 6px; margin-bottom: 10px; border: 1px solid #ffd8b3; }
.vodafone-box { margin-top: 8px; background: #fff; padding: 8px; border-radius: 4px; border: 1px dashed #e60000; }
.v-instructions { font-size: 12px; color: #d90000; }
.btn-whatsapp { width: 100%; padding: 12px; background: #25D366; color: white; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; }

/* Modal Admin Dashboard */
.admin-modal-content { background: #fff; width: 90%; max-width: 600px; padding: 25px; border-radius: 12px; max-height: 85vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 15px; }
.close-modal { font-size: 24px; cursor: pointer; }
.admin-tabs { display: flex; gap: 10px; margin-bottom: 15px; }
.tab-btn { flex: 1; padding: 8px; border: 1px solid var(--primary-color); background: #fff; cursor: pointer; border-radius: 6px; font-weight: bold; }
.tab-btn.active { background: var(--primary-color); color: #fff; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.admin-form input, .admin-form select { width: 100%; padding: 8px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 6px; }
.btn-admin { width: 100%; padding: 10px; background: var(--primary-color); color: #fff; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; }
.admin-item-row { display: flex; justify-content: space-between; align-items: center; padding: 8px; border-bottom: 1px solid #eee; }
.admin-item-row input { width: 80px; padding: 4px; text-align: center; }
.btn-delete { background: #d9534f; color: #fff; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; }

.footer { background: #1a1a1a; color: #aaa; text-align: center; padding: 20px 0; margin-top: 40px; }
/* تنسيقات البانر المتحرك */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 450px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 0 20px;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    color: #fff;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* أسهم التنقل */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 30, 30, 0.7);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    transition: 0.3s;
}

.slider-btn:hover {
    background: rgba(139, 30, 30, 1);
}

.prev-btn { right: 20px; }
.next-btn { left: 20px; }

/* نقاط التنقل أسفل البانر */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #8B1E1E;
    width: 25px;
    border-radius: 10px;
}/* إصلاح ضبط البانر المتحرك الهيدر */
.hero-slider {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 420px;
    overflow: hidden;
    margin-top: 70px; /* لضمان عدم الاختفاء تحت الهيدر الثابت */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    padding: 0 20px;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-content {
    color: #fff;
    max-width: 800px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* أسهم البانر */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 30, 30, 0.8);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    transition: 0.3s;
}

.slider-btn:hover {
    background: #8B1E1E;
}

.prev-btn { right: 20px; }
.next-btn { left: 20px; }

/* نقاط المؤشر */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #8B1E1E;
    width: 25px;
    border-radius: 10px;
}
 .add-to-cart-btn:hover{
    background-color: #3f0303;
     transform: scale(1.08);

 }
 .add-to-cart-btn{
     
    transition: all 0.5s ease;
 }
 .header .container .logo a{
    text-decoration: none;
    color: #d97706;

 }
  .header .container .logo a:hover{
    color: #eec84c;
  }
  .header .container .nav-links{
    justify-content: center;
    display: flex;
    align-items: center;
    text-align: center;
    margin-left: 15rem;
  }
    .header .container .nav-links a{
        /* gap: 50px; */
    }
    .slide .hero-content .hero-btns a{
        transition: all 0.5s ease;
    }
    .slide .hero-content .hero-btns a:hover{
        transform: scale(1.08);
    }
    /* لون القايمه بتاعت السله */
   .cart-drawer{
    background-color: #aaa;
   }