/* Order page — builds on css/styles.css (same variables, nav, buttons, .field) */

.order-page{ padding-top:120px; min-height:100vh; }
.order-wrap{ display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr); gap:36px; align-items:start; padding-block:32px 80px; }

.order-back{ color:#f3efe6; font-size:.95rem; font-weight:500; padding:4px 2px; transition:color .3s; }
.order-back:hover{ color:var(--gold-light); }

/* Product card */
.order-product{
  background:var(--black); color:var(--offwhite); border-radius:var(--radius);
  padding:32px 26px; text-align:center; box-shadow:var(--shadow);
  position:sticky; inset-block-start:110px;
}
.order-product img{ width:min(240px,70%); margin:0 auto 18px; border-radius:10px; }
.order-product h2{ color:var(--white); font-size:1.5rem; }
.order-product__size{ color:var(--gold-light); margin-bottom:14px; }
.order-product ul{ display:grid; gap:6px; color:#cfc8ba; font-size:.95rem; }

/* Form card */
.order-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:clamp(24px,4vw,44px); box-shadow:0 20px 50px rgba(0,0,0,.06);
}
.order-lead{ color:var(--muted); margin-bottom:26px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field small{ color:var(--muted); font-weight:400; }
.field select{
  width:100%; padding:.9em 1.1em; border:1px solid #ddd5c7; border-radius:10px;
  font-family:var(--body); font-size:1rem; background:var(--offwhite); color:var(--ink); transition:.3s;
}
.field select:focus{ outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(201,162,75,.15); background:#fff; }
html.lang-ar .field input[dir="ltr"]{ text-align:right; }
.field input:user-invalid{ border-color:#c0392b; }

.hp{ position:absolute; opacity:0; width:0; height:0; margin:0; padding:0; border:0; overflow:hidden; pointer-events:none; }
.order-submit{ width:100%; margin-top:6px; }
.order-submit:disabled{ opacity:.65; cursor:wait; transform:none; }
.order-msg{ margin-top:14px; text-align:center; font-size:.95rem; }
.order-msg--err{ color:#b03a2e; }

/* Success */
.order-done{ text-align:center; padding:30px 0; }
.order-done__icon{ display:block; font-size:2.4rem; color:var(--gold); margin-bottom:8px; }
.order-done p{ color:var(--muted); margin-bottom:24px; }

@media (max-width:860px){
  .order-wrap{ grid-template-columns:1fr; }
  .order-product{ position:static; padding:22px; }
  .order-product img{ width:130px; margin-bottom:10px; }
  .order-product ul{ display:none; }
}
@media (max-width:520px){
  .field-row{ grid-template-columns:1fr; gap:0; }
  .order-page{ padding-top:96px; }
  .order-card .btn{ width:100%; }
}

.field-err{ margin-top:6px; font-size:.85rem; color:#b03a2e; }
.field input.is-invalid{ border-color:#c0392b; }

/* ---- select: same look as inputs, arrow on the correct side for RTL/LTR ---- */
.field select{
  appearance:none; -webkit-appearance:none; cursor:pointer;
  padding-inline-start:1.1em; padding-inline-end:2.8em;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%238a8378' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:left 1.1em center;
}
html[dir="ltr"] .field select{ background-position:right 1.1em center; }

/* ---- phones: compact product card, form comes into view sooner ---- */
@media (max-width:860px){
  .order-wrap{ gap:20px; padding-block:16px 56px; }
  .order-product{
    display:grid; grid-template-columns:84px 1fr; column-gap:14px; align-items:center;
    text-align:start; padding:16px;
  }
  .order-product img{ grid-row:1 / span 2; width:84px; margin:0; }
  .order-product h2{ font-size:1.25rem; align-self:end; }
  .order-product__size{ margin:0; align-self:start; }
  .order-product .order-offers{ grid-column:1 / -1; margin:14px 0 0; gap:6px; }
  .order-offers__row{ padding:8px 10px; font-size:.9rem; }
  .order-offers__row strong{ font-size:1.5rem; }
  .order-offers__pill{ font-size:.82rem; }
}
@media (max-width:520px){
  .order-card{ padding:22px 18px; }
  .order-card .section__title{ font-size:1.6rem; }
  .order-lead{ margin-bottom:20px; font-size:.95rem; }
  .field{ margin-bottom:16px; }
}
