
/* ===== כפתור הזמנה ===== */
.order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #0a0a0a;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 20px 40px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
    letter-spacing: 0.3px;
}
.order-btn:hover {
    background: #2c2c2c;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}
.order-btn:focus-visible {
    outline: 3px solid #0a0a0a;
    outline-offset: 4px;
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.modal-box {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px 32px;
    position: relative;
    direction: rtl;
    text-align: right;
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    transition: color 0.2s;
    font-family: 'Heebo', sans-serif;
}
.modal-close:hover { color: #0a0a0a; }

.modal-product-name {
    font-size: 0.78rem;
    color: #aaa;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 0 6px;
    text-transform: uppercase;
}
.modal-box h2 {
    font-size: 1.6rem !important;
    font-weight: 900;
    color: #0a0a0a;
    margin: 0 0 6px !important;
    letter-spacing: -0.5px;
}
.modal-sub {
    font-size: 0.88rem;
    color: #888;
    margin: 0 0 24px !important;
    max-width: 100% !important;
}

/* שדות */
.mf-row { margin-bottom: 16px; }
.mf-row label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    margin-bottom: 6px;
}
.mf-row .opt { font-size: 0.78rem; color: #bbb; font-weight: 400; text-transform: none; }
.mf-row input,
.mf-row textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    font-family: 'Heebo', sans-serif;
    font-size: 0.93rem;
    color: #333;
    transition: border-color 0.2s;
    background: white;
}
.mf-row input:focus,
.mf-row textarea:focus {
    outline: none;
    border-color: #0a0a0a;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.mf-row textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

/* consent */
.modal-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    border: 1.5px solid #eee;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 14px 0 20px;
    cursor: pointer;
}
.modal-consent input[type="checkbox"] {
    width: 18px; height: 18px;
    flex-shrink: 0; cursor: pointer;
    accent-color: #0a0a0a;
}
.modal-consent label {
    font-size: 0.8rem; color: #666;
    line-height: 1.5; cursor: pointer;
}
.modal-consent label a { color: #0a0a0a; font-weight: 700; text-decoration: underline; }

/* שגיאה */
.modal-error {
    background: #fff5f5;
    border: 1px solid #ffc5c5;
    border-radius: 8px;
    padding: 10px 14px;
    color: #c0392b;
    font-size: 0.88rem;
    margin-bottom: 14px;
}

/* כפתור שליחה */
.modal-submit {
    width: 100%;
    padding: 14px;
    background: #0a0a0a;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Heebo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-submit:hover { background: #2c2c2c; }
.modal-submit:disabled { background: #aaa; cursor: not-allowed; }

/* הצלחה */
.modal-success-wrap {
    text-align: center;
    padding: 20px 0;
}
.modal-success-icon {
    width: 60px; height: 60px;
    background: #0a0a0a;
    color: white;
    border-radius: 50%;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.modal-success-wrap h2 {
    font-size: 1.5rem !important;
    margin: 0 0 10px !important;
}
.modal-success-wrap p {
    color: #666;
    font-size: 0.93rem;
    line-height: 1.7;
    max-width: 100% !important;
}

/* thumbs */
.product-gallery {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.thumbs-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.thumb-btn {
    width: 70px; height: 70px;
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    padding: 0;
    transition: border-color 0.2s;
    flex-shrink: 0;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn.active { border-color: #0a0a0a; }
.thumb-btn:hover  { border-color: #888; }
