/* 1. Global & Fonts */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8f9fa;
    direction: rtl;
    overflow-x: hidden;
}

/* 2. Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #ff4b2b, #ff416c);
    color: #fff;
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 65, 108, 0.3);
    animation: flash 2s infinite;
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* 3. Navbar Setup */
.main-navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
}

.logo img {
    height: 60px;
}

#nav-check,
.nav-btn {
    display: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #b38b59;
}

/* 4. Desktop Layout */
.container {
    max-width: 1100px;
    margin: 40px auto;
    display: flex;
    flex-direction: row;
    gap: 40px;
    padding: 0 20px;
    align-items: flex-start;
}

.product-gallery {
    flex: 1;
    max-width: 500px;
    width: 100%;
}

.product-details {
    flex: 1;
    width: 100%;
    text-align: right;
}

.swiper-slide img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 15px;
}

/* 5. Form UX Fix (No Zoom + High Visibility) */
.selection-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.selection-row .form-group {
    flex: 1;
}

input, select {
    width: 100%;
    padding: 16px 12px; /* Kbar touch area bach i-ji sahla f l-khidma */
    border: 2px dashed #ddd;
    border-radius: 12px;
    background: #fafafa;
    font-family: 'Cairo', sans-serif;
    margin-bottom: 15px;
    
    /* CRITICAL FOR IPHONE: 16px min to stop tiny look & auto-zoom */
    font-size: 16px !important; 
    line-height: 1.5;
    
    /* Safi bach may-banouch ghari9in */
    -webkit-appearance: none; 
    appearance: none;
}
input::placeholder {
    font-size: 16px;
    color: #888;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 17px;
    color: #333;
}

input:focus,
select:focus {
    border-color: #e67e22;
    background: #fff;
    outline: none;
}

#total-price-wrapper {
    background: #fff8f0;
    border: 1px dashed #b38b59;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.btn-buy-flash {
    background: linear-gradient(45deg, #e67e22, #f39c12);
    color: #fff;
    border: none;
    width: 100%;
    padding: 20px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-buy-flash:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.2);
}

/* 6. Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: popUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-icon {
    font-size: 60px;
    margin-bottom: 15px;
    display: block;
}

.alert-box {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #ffeeba;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.6;
}

.btn-confirm {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 18px;
    width: 100%;
    border-radius: 12px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

/* 7. Mobile Responsive Logic */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }

    .product-gallery,
    .product-details {
        max-width: 100%;
        flex: none;
    }

    .swiper-slide img {
        height: auto;
        max-height: 400px;
    }

    .selection-row {
        flex-direction: column;
    }

    /* Navbar Mobile */
    .nav-btn {
        display: block !important;
    }

    .nav-btn label {
        display: inline-block;
        width: 30px;
        height: 30px;
        cursor: pointer;
        padding-top: 5px;
    }

    .nav-btn label span {
        display: block;
        width: 25px;
        height: 3px;
        background: #333;
        margin-bottom: 5px;
        transition: 0.3s;
    }

    .nav-links {
        position: absolute;
        display: block;
        width: 100%;
        background: #fff;
        height: 0;
        transition: 0.3s;
        overflow: hidden;
        top: 80px;
        left: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    }

    #nav-check:checked~.nav-links {
        height: auto;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #f9f9f9;
        text-align: right;
    }

    #nav-check:checked~.nav-btn label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #nav-check:checked~.nav-btn label span:nth-child(2) {
        opacity: 0;
    }

    #nav-check:checked~.nav-btn label span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* 8. Trust Section Centering */
.trust-section {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto !important;
    padding: 30px 20px;
    background: #fff;
    border-radius: 20px;
    text-align: center;
}

.gold-text {
    color: #b38b59;
    margin-bottom: 20px;
    display: block;
}

.specs-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.spec-item {
    background: #fafafa;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
}

.features-list p {
    margin: 10px 0;
    font-weight: 600;
}

.faq-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .faq-section {
        grid-template-columns: 1fr;
    }
}

.badges-wrapper img {
    max-width: 150px;
    margin: 30px auto 0;
    display: block;
    opacity: 0.7;
}