:root {
    --color-bg: #FFFFFF;                 /* أبيض نقي - خلفية رئيسية */
    --color-bg-elevated: #F5F7FC;        /* أزرق رمادي فاتح جداً (بدلاً من الكريمي) */
    --color-bg-surface: #EBF0F8;         /* أزرق باهت مائل للرمادي (للخلفيات الثانوية) */
    --color-primary: #9E7E2C;            /* أزرق داكن غامق (للأزرار، العناوين البارزة) */
    --color-text: #2C3E50;               /* أزرق رمادي غامق (للنصوص العادية) */
    --color-foreground: #1A2A3A;         /* كحلي داكن جداً (للنصوص الرئيسية) */
    --color-muted: #7A8C9E;              /* رمادي أزرق فاتح (للنصوص الثانوية) */
    --color-muted-light: #D1DCE6;        /* رمادي فاتح مائل للأزرق (للحواف) */
    --color-border: rgba(44, 95, 138, 0.15); /* حد شفاف بلون الأزرق الرئيسي بدرجة خفيفة */
    --transition: 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-foreground);
    scroll-behavior: smooth;
}
.scroller{
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background-color:var(--color-text);
    z-index: 100000;
}
/* تأثير الظهور عند التمرير */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* يمكن إضافة تأخير مختلف للبطاقات بشكل فردي اختياري */
.card {
    /* تأكد من أن الكارد ليس مخفيًا بشكل افتراضي */
    transition: 3s;
}
.fa-whatsapp-main{
    position: fixed;
    font-size: 48px;
    z-index: 1000000;
    color:#25D366;
    right: 30px;
    bottom: 30px;
    cursor: pointer;
    transition: transform var(--transition);
}
.fa-whatsapp-main:hover {
    transform: scale(1.05);
}  
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
header {
    padding: 15px 5px;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: var(--color-bg);
    z-index: 999;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    width: 60px;
}
.logo img{
    width: 100%;
}

header ul {
    display: flex;
    gap: 28px;
}
header ul li {
    list-style: none;
    position: relative;
}
header ul li a {
    color: var(--color-primary-light);
    text-decoration: none;
    font-weight: 500;
}
header ul li::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    bottom: -6px;
    right: 0;
    transition: var(--transition);
}
header ul li:hover::after { width: 100%; }
.burger-countiner{
    display: relative;
    align-items: center;
    gap: 15px;
}
@media (min-width:767px) {
    .burger-countiner{
        display: none;
    }
}
.burger-icon { display: none; font-size: 24px; cursor: pointer; color: black; }

/* زر السلة العائم */
.floating-cart {
    position: fixed;
    left: 20px;
    bottom: 20px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.2s;
    background-color: white;
}
.floating-cart:hover {
    transform: scale(1.05);
}
.floating-cart img {
    color: white;
    width: 40px;
    height: 40px;
}
.floating-cart .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-text);
    color: white;
    font-size: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
@media (max-width: 767px) {
    .floating-cart {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
    .floating-cart i {
        font-size: 24px;
    }
    header ul {
        position: absolute;
        flex-direction: column;
        background: #ffffffef;
        backdrop-filter: blur(10px);
        top: 56px;
        right: 0;
        width: 100%;
        padding: 20px;
        display: none;
        z-index: 200;
        border-radius: 0 0 20px 20px;
    }
    header ul.show { display: flex; }
    .burger-icon { display: block; }
}
.landing{
    background-image: url(../img/landing.jpg);
    background-size: cover;
    background-position: center;
    height: calc(100vh - 65.33px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width:767px) {
    .landing{
        background-image: url(../img/landing-phone.jpg);
    }
}
.landing .container{
    text-align: center;
    line-height: 2;
    color: white;
    background-color: #1f1f1f9d;
    padding: 40px 50px ;
    width: fit-content;
}
.landing .container p{
    max-width: 450px;
}
@media (max-width:767px) {
    .landing .container p{
        font-size: 14px;
        font-weight: bold;
}
}
.section-name {
    position: relative;
    margin: 50px 0 30px;
}
.section-name h1 {
    text-align: center;
    background: var(--color-bg);
    width: fit-content;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 1.8rem;
}
.section-name span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-primary);
    z-index: -1;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border:1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 15px 12px 20px;
    cursor: pointer;
    transition: .8s;
    position: relative;
    text-align: center;

}
.card:hover { border-color: var(--color-primary); transform: translateY(-5px); }
.card .badge-left, .card .badge-right {
    position: absolute;
    top: 12px;
    background:#84161a;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    color: white;
}
.badge-right{
    display: none;
}
.card .badge-left { left: 12px; }
.card .badge-right { right: 12px; background: #b3470c; }
.card .img { text-align: center; margin: 15px 0; }
.card .img img { max-height: 180px; }
.card .info { font-size: 1.2rem; font-weight: 600; color: var(--color-primary-light); }
.card .descript { font-size: 1rem;margin-top: 5px; font-weight: 600; color: var(--color-text); }
.card .price { color: var(--color-primary); font-weight: 500; margin-top: 8px; }

/* القسم المخصص (نموذج كتابة حر) */
.custom-order-section {
    background: white;
    border-radius: 28px;
    padding: 30px;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

}

.custom-order{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 360px;
    background-color: var(--color-bg-elevated);
    border-radius: 10px;
    padding: 10px;
}
#custom img{
    width: 300px;
}
@media (max-width:767px) {
    .custom-order-section{
        max-width: 360px;
        margin: 0 auto;
    }
    #custom img{
        display: none;
    }
    .custom-form {
        background-color:transparent;
        border-radius: 10px;
        padding: 0px;
        margin: 0 auto;
        max-width: 360px;
    }
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-weight: 600;
    color: var(--color-primary-light);
}
.form-group input, .form-group textarea {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 12px 15px;
    border-radius: 40px;
    color: var(--color-text);
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-primary);
}
.btn-add-custom {
    background: var(--color-primary);
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-add-custom:hover {
    background: var(--color-primary);
    transform: scale(0.98);
}

/* سلة جانبية مع تمرير مناسب */
.cart-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}
.cart-overlay.active { visibility: visible; opacity: 1; }
.cart-sidebar {
    position: fixed;
    top: 0; left: -420px;
    width: 100%; max-width: 400px;
    height: 100%;
    background: var(--color-bg-elevated);
    border-left: 1px solid var(--color-primary);
    z-index: 1001;
    transition: left 0.3s;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open { left: 0; }
.cart-header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}
.cart-header h3 { color: var(--color-text); }
.close-cart { background: none; border: none; color: var(--color-muted); font-size: 26px; cursor: pointer; }
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-bg-surface);
}
.cart-items::-webkit-scrollbar {
    width: 6px;
}
.cart-items::-webkit-scrollbar-track {
    background: var(--color-bg-surface);
    border-radius: 10px;
}
.cart-items::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}
.cart-item {
    background: var(--color-bg);
    border-radius: 16px;
    padding: 12px;
    border-right: 3px solid var(--color-primary);
    position: relative;
}
.cart-item .item-title { font-weight: bold; color: var(--color-primary-light); }
.cart-item .item-details { font-size: 0.8rem; color: var(--color-text); margin: 4px 0; white-space: pre-wrap; }
.cart-item .item-price { font-weight: 600; color: var(--color-primary); margin-top: 6px; }
.remove-item {
    position: absolute;
    top: 12px; left: 12px;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    font-size: 18px;
}
.cart-total {
    padding: 20px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
    flex-shrink: 0;
}
.total-line {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 15px;
}
.whatsapp-input {
    display: flex;
    gap: 8px;
    background: var(--color-bg-surface);
    border-radius: 40px;
    padding: 8px;
    margin-bottom: 15px;
}
.whatsapp-input input {
    background: transparent;
    border: none;
    color: white;
    flex: 1;
    outline: none;
}
.btn-checkout {
    width: 100%;
    background: #25D366;
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
/* الفوتر */
footer {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    padding: 40px 0 30px;
    margin-top: 60px;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}
.footer-info, .footer-social {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
@media (max-width:767px) {
    .footer-info{
        align-items: center;
    }
}
.footer-info img{
    width: 80px;
}
.footer-info h4, .footer-social h4 {
    color: var(--color-text);
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.footer-social h4 {
    text-align: center;
}
.footer-social p {
    text-align: center;
    font-size: 14px;
    color: var(--color-text);
    
}
@media (max-width:767px) {
    .footer-social p{
        max-width: 300px;
        margin: 0 auto;
    }
}
.footer-info p {
    margin: 8px 0;
    color: var(--color-text);
}
.footer-info p a{
    text-decoration: none;
    color: var(--color-text);
}
.footer-info i {
    margin-left: 10px;
    width: 25px;
    color: var(--color-text);
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.social-icons a {
    color: var(--color-text);
    font-size: 28px;
    transition: 0.2s;
}
.social-icons a:hover { color: black; transform: translateY(-3px); }
.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    color: black;
    font-size: 0.8rem;
}
@media (max-width: 767px) {
    .footer-content {
        flex-direction: column;
        text-align: center; 
    }
    .social-icons { justify-content: center; }
    .footer-info p {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}

/* مودال التخصيص مع خيارات الصور الحقيقية */
.customize-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    z-index: 1100;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-form{
    flex: 1;
    padding: 25px;
}
@media (max-width:767px) {
    .custom-form{
    padding: 0px;
}
}
.customize-modal.active { visibility: visible; opacity: 1; }
.modal-container {
    background: var(--color-bg-elevated);
    width: 90%;
    max-width: 500px;
    border-radius: 32px;
    border: 1px solid var(--color-primary);
    padding: 20px ;
    max-height: 90vh;
    overflow-y: auto;  /* تعديل لضمان تمرير المحتوى الطويل */
}
.modal-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
    margin-bottom: 15px;
}
.modal-header h3 { color: var(--color-primary); }
.close-modal { background: none; border: none; color: var(--color-text); font-size: 24px; cursor: pointer; }
.product-preview {
    background: var(--color-bg);
    padding: 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-align: center;
}
.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary-light);
    margin: 15px 0 8px;
    text-align: center;
}
.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 15px 0;
}
.option-image {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 12px;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    width: 130px;
}
.option-image:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
}
.option-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}
.option-image span {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--color-primary);
}
.current-price-badge {
    display: inline-block;
    padding: 0px 15px;
    border-radius: 40px;
    font-weight: bold;
    margin-top: 12px;
}
.old-price-badge{
    margin-top: 10px;
    margin-bottom: -4px;
}
.back-step {
    background: none;
    border: none;
    color: var(--color-text);
    margin-top: 20px;
    white-space: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}
.back-step:hover{
    color:black;
}
.back-step i{
    margin-left: 5px;
}
hr {
     border-color: var(--color-border);
      margin: 12px 0
}
