/* إعدادات بسيطة لإزالة الهوامش الافتراضية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f7f3ee;
    color: #333;
}

/* تنسيق شريط التنقل العلوي */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #8c6d53;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-size: 16px;
    font-weight: bold;
}

nav ul li a:hover,
nav ul li a.active {
    color: #8c6d53;
}

/* تنسيق قسم الواجهة الرئيسية والخلفية */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('hero-imag.jpeg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* طبقة تظليل خفيفة فوق الخلفية لتوضيح الكلام */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: #ffffff;
    font-size: 45px;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* تنسيق زر ابدأ التصميم */
#startBtn {
    background-color: #f096ac;
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

#startBtn:hover {
    background-color: #b0873b;
}
/* تنسيق صفحة بناء الهدية (الأعمدة الثلاثة) */
.builder-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 130px 40px 40px 40px;
    background-color: #f7f3ee;
    min-height: 100vh;
    flex-wrap: wrap;
}

.builder-column {
    /* background-color: #ffffff; */
        background-color: #f5d7ec;
    border-radius: 12px;
    padding: 20px;
    flex: 1;
    min-width: 280px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e6dcd0;
}

.builder-column h3 {
    color: #8c6d53;
    font-size: 17px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f7f3ee;
    padding-bottom: 8px;
}

/* تنسيق بطاقة خيار الصندوق لتشمل الصورة والنص بجانب بعضهما */
.option-card {
    background: #faf8f5;
    border: 1px solid #e2dbd0;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-card:hover {
    border-color: #c49b45;
    background: #fff;
}

/* تنسيق صورة الصندوق المصغرة داخل القائمة */
.box-thumb {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* تنسيق النصوص داخل الكارد (العنوان والسعر) */
.option-info h4 {
    margin: 0 0 4px 0;
    color: #4a4a4a;
    font-size: 16px;
}

.option-info p {
    margin: 0;
    color: #8c6d53;
    font-size: 14px;
    font-weight: bold;
}

.option-card:hover {
    border-color: #c49b45;
    background: #fff;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #faf8f5;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e2dbd0;
    margin-bottom: 10px;
    font-size: 14px;
}

.product-item button {
    background-color: #c49b45;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

.totals {
    margin-top: 20px;
    font-size: 14px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #555;
}

.total-row.final {
    font-weight: bold;
    font-size: 16px;
    color: #8c6d53;
    border-top: 1px solid #ddd;
    padding-top: 8px;
    margin-top: 8px;
}

#checkoutBtn {
    width: 100%;
    background-color: #c49b45;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#checkoutBtn:hover {
    background-color: #b0873b;
}
/* شبكة المنتجات لتظهر 3 في كل صف (3x3) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* تصميم بطاقة كل منتج منفردة */
.product-item {
    background: #faf8f5;
    border: 1px solid #e2dbd0;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
}

.product-item:hover {
    border-color: #c49b45;
    background: #fff;
}

/* تنسيق صورة المنتج المصغرة */
.product-thumb {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 6px;
}

/* عنوان المنتج والسعر */
.product-item h4 {
    font-size: 12px;
    color: #4a4a4a;
    margin: 2px 0;
}

.product-item p {
    font-size: 11px;
    color: #8c6d53;
    font-weight: bold;
    margin: 0 0 6px 0;
}

/* زر الإضافة (+) الدائري */
.product-item button {
    background: #c49b45;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.product-item button:hover {
    background: #a88235;
}
/* تنسيق العمود الثالث (الملخص) */
.summary-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* معاينة صورة الصندوق في الملخص */
.summary-box-preview {
    width: 100%;
    height: 130px;
    background: #fff;
    border: 1px solid #e2dbd0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* قائمة المنتجات والصناديق داخل الملخص */
.summary-items-list {
    background: #fff;
    border: 1px solid #e2dbd0;
    border-radius: 8px;
    padding: 8px 10px;
    max-height: 130px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #4a4a4a;
    padding: 4px 0;
    border-bottom: 1px solid #f2efeb;
}

.summary-row:last-child {
    border-bottom: none;
}

/* حسابات الإجمالي المالية */
.summary-totals {
    background: #fff;
    border: 1px solid #e2dbd0;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
}

.final-total {
    font-weight: bold;
    color: #8c6d53;
    font-size: 14px;
    border-top: 1px dashed #d1c7bc;
    padding-top: 5px;
    margin-top: 5px;
}

/* زر إتمام الطلب الاحترافي */
.checkout-btn {
    background: #c49b45;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    text-align: center;
}

.checkout-btn:hover {
    background: #837b4d;
}
/* تنسيق عام لصفحة إتمام الطلب */
.checkout-container {
    display: flex;
    gap: 20px;
    max-width: 950px;
    margin: 30px auto;
    padding: 0 15px;
}

.checkout-section {
    flex: 1;
    /* background: #faf8f5; */
    background-color: #f3cee8;
    border: 1px solid #e2dbd0;
    border-radius: 12px;
    padding: 20px;
}

.checkout-section h2 {
    color: #8c6d53;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f2efeb;
    padding-bottom: 8px;
}

/* حقول الإدخال */
.form-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #e2dbd0;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #c49b45;
    outline: none;
}

/* خيارات الدفع */
.payment-methods {
    margin: 15px 0;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e2dbd0;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #4a4a4a;
}

/* عنصر الصندوق في الملخص */
.summary-box-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e2dbd0;
    margin-bottom: 10px;
}

.summary-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.summary-price {
    color: #8c6d53;
    font-size: 12px;
    font-weight: bold;
    margin: 2px 0 0 0;
}
/* تنسيق الحاوية الرئيسية لصفحة الدفع */
.checkout-container {
    display: flex;
    gap: 25px;
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 15px;
}

/* تنسيق أقسام الشاشة (اليمين واليسار) */
.checkout-section {
    flex: 1;
    background: #faf8f5;
    border: 1px solid #e2dbd0;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.checkout-section h2 {
    color: #8c6d53;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f2efeb;
    padding-bottom: 8px;
}

/* تنسيق حقول الإدخال */
.form-input {
    width: 100%;
    padding: 11px;
    margin-bottom: 12px;
    border: 1px solid #e2dbd0;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #c49b45;
    outline: none;
}

/* خيارات الدفع */
.payment-methods {
    margin: 15px 0;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e2dbd0;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #4a4a4a;
    transition: 0.2s;
}

.payment-option:hover {
    border-color: #c49b45;
}

/* صندوق المنتج في الملخص */
.summary-box-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2dbd0;
    margin-bottom: 12px;
}

.summary-thumb {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
}

.summary-price {
    color: #8c6d53;
    font-size: 13px;
    font-weight: bold;
    margin: 3px 0 0 0;
}
/* تنسيق حاوية صفحة النجاح */
.success-container {
    max-width: 550px;
    margin: 45px auto;
    padding: 25px;
    text-align: center;
    background: #faf8f5;
    border: 1px solid #e2dbd0;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* أيقونة علامة الصح الخضراء */
.success-icon {
    width: 65px;
    height: 65px;
    background: #e8f5e9;
    color: #4caf50;
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    border: 2px solid #c8e6c9;
}

.success-title {
    color: #4a4a4a;
    font-size: 20px;
    margin-bottom: 6px;
}

.success-subtitle {
    color: #8c6d53;
    font-size: 13px;
    margin-bottom: 20px;
}

/* بطاقة تفاصيل الطلب */
.success-card {
    background: #fff;
    border: 1px solid #e2dbd0;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.order-number-title {
    color: #666;
    font-size: 12px;
    margin-bottom: 4px;
}

.order-id {
    color: #c49b45;
    font-size: 18px;
    margin-bottom: 12px;
}

.success-details-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
    padding: 6px 0;
    border-bottom: 1px solid #f2efeb;
}

.success-details-row:last-child {
    border-bottom: none;
}

/* زر العودة للرئيسية */
.home-btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}