.orders-page{background:var(--concept-bg)}
.orders-page main{min-height:70vh}
.orders-shell{width:min(calc(100% - 2.3rem),1180px);margin-inline:auto}
.orders-hero{overflow:hidden;border-bottom:1px solid var(--concept-line);background:radial-gradient(circle at 82% 20%,rgba(169,95,45,.17),transparent 22rem),linear-gradient(135deg,#f8f4ed,#eee4d7)}
.orders-hero .orders-shell{min-height:360px;padding-block:clamp(4rem,9vw,7.5rem);display:flex;align-items:end;justify-content:space-between;gap:3rem}
.orders-hero__copy{max-width:720px}
.orders-hero__copy .concept-eyebrow{margin-bottom:1.3rem}
.orders-hero h1{font-size:clamp(3.8rem,9vw,7.5rem);letter-spacing:-.055em}
.orders-hero p{max-width:47ch;margin:1.4rem 0 0;color:var(--concept-muted);font-size:clamp(1rem,2vw,1.18rem)}
.orders-hero__mark{width:150px;height:150px;flex:0 0 auto;border:1px solid rgba(138,90,43,.36);border-radius:50%;display:grid;place-content:center;text-align:center;color:var(--leather);font:500 1rem var(--serif);transform:rotate(7deg)}
.orders-hero__mark i{display:block;width:54px;height:1px;margin:.45rem auto;background:currentColor}
.orders-main{padding:clamp(3.5rem,7vw,6.5rem) 0 clamp(5rem,10vw,9rem)}
.orders-section-head{display:flex;align-items:end;justify-content:space-between;gap:2rem;margin-bottom:2.5rem}
.orders-section-head h2{margin-top:.65rem;font-size:clamp(2.2rem,5vw,3.8rem);letter-spacing:-.035em}
.orders-section-head>p{max-width:46ch;margin:0;color:var(--concept-muted)}
.orders-app{min-width:0;display:grid;gap:1rem}
.orders-loading,.orders-notice{min-height:180px;padding:2rem;border:1px solid var(--concept-line);border-radius:24px;background:var(--concept-surface);display:flex;align-items:center;justify-content:center;gap:1rem;text-align:center;box-shadow:0 18px 50px rgba(38,29,21,.06)}
.orders-spinner{width:27px;height:27px;border:2px solid var(--concept-line);border-top-color:var(--concept-brand);border-radius:50%;animation:orders-spin .75s linear infinite}
@keyframes orders-spin{to{transform:rotate(360deg)}}
.orders-notice{min-height:260px;flex-direction:column}
.orders-notice__icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#edf4f5;color:var(--concept-brand);font-size:1.4rem}
.orders-notice h3{font-size:clamp(1.8rem,4vw,2.5rem)}
.orders-notice p{max-width:52ch;margin:0;color:var(--concept-muted)}
.orders-notice .concept-btn{margin-top:.4rem}
.order-list{min-width:0;display:grid;gap:1.15rem}
.order-card{min-width:0;overflow:hidden;border:1px solid var(--concept-line);border-radius:24px;background:var(--concept-surface);box-shadow:0 18px 50px rgba(38,31,24,.07)}
.order-summary{width:100%;min-width:0;padding:1.35rem 1.5rem;display:grid;grid-template-columns:minmax(190px,1.25fr) minmax(150px,.8fr) minmax(125px,.65fr) minmax(120px,.55fr) auto;gap:clamp(.9rem,2.2vw,1.5rem);align-items:center;background:#fffdf9}
.order-summary>div{min-width:0}
.order-summary__identity{display:grid;grid-template-columns:46px minmax(0,1fr);column-gap:.8rem;align-items:center}
.order-summary__identity .order-summary__label,.order-summary__identity strong{grid-column:2}
.order-card__number{grid-column:1;grid-row:1/span 2;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:var(--concept-brand);color:#fff;font:700 1.1rem/1 var(--font-display)}
.order-summary__label{display:block;margin-bottom:.28rem;color:var(--concept-muted);font-size:.65rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.order-summary strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:.86rem;white-space:nowrap}
.order-summary .is-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;unicode-bidi:isolate}
.order-status-badge{width:fit-content;padding:.4rem .65rem;border:1px solid rgba(12,89,108,.2);border-radius:999px;background:rgba(12,89,108,.08);color:var(--concept-brand);font-size:.72rem!important;font-family:var(--font-ui);font-weight:800}
.order-summary__status.is-exit .order-status-badge{border-color:rgba(169,95,45,.24);background:rgba(169,95,45,.09);color:var(--leather)}
.order-summary__total strong{color:var(--leather);font:700 1.35rem/1.1 var(--font-display)}
.order-card__toggle{min-width:132px;min-height:44px;padding:.6rem .8rem;border:1px solid var(--concept-line);border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:.55rem;background:transparent;color:var(--concept-brand);font-weight:800;cursor:pointer}
.order-card__chevron{font-size:1rem;line-height:1}
.order-card__toggle:hover{background:var(--paper-deep)}
.order-card__toggle:focus-visible,.order-secondary-action:focus-visible,.order-details__action:focus-visible,.order-photo-dialog__close:focus-visible{outline:3px solid color-mix(in srgb,var(--concept-brand) 45%,transparent);outline-offset:2px}
.order-card__body{min-width:0;padding:clamp(1.4rem,4vw,2rem);border-top:1px solid var(--concept-line);display:grid;gap:clamp(1.5rem,4vw,2.5rem);background:linear-gradient(180deg,#fffdf9,#fcf8f2)}
.order-card__body[hidden]{display:none}
.order-progress{--progress:0%;position:relative;width:100%;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));list-style:none;padding:0;margin:0}
.order-progress:before,.order-progress:after{content:"";position:absolute;z-index:0;top:15px;inset-inline-start:calc(100% / 12);height:2px}
.order-progress:before{inset-inline-end:calc(100% / 12);background:#d5cec5}
.order-progress:after{width:calc(var(--progress) * .8333);background:var(--concept-brand)}
.order-progress li{position:relative;z-index:1;min-width:0;padding-inline:.3rem;text-align:center;color:#928b82;font-size:.72rem;line-height:1.3}
.order-progress i{width:31px;height:31px;margin:0 auto .7rem;border:2px solid #c8c0b5;border-radius:50%;display:grid;place-items:center;background:var(--concept-surface);color:var(--concept-muted);font-style:normal;font-size:.72rem;font-weight:900}
.order-progress__label{display:block;min-height:2.6em;font-weight:700}
.order-progress li.is-complete{color:var(--concept-ink)}
.order-progress li.is-complete i{border-color:var(--account-success,#2f6b4f);background:var(--account-success,#2f6b4f);color:#fff}
.order-progress li.is-current{color:var(--concept-ink)}
.order-progress li.is-current i{border-color:var(--concept-brand);background:var(--concept-brand);color:#fff;box-shadow:0 0 0 6px rgba(12,89,108,.12)}
.order-progress time,.order-progress small{display:block;margin-top:.3rem;color:var(--concept-muted);font-size:.62rem;font-weight:500}
.order-details{width:100%;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(2rem,7vw,6rem);border:1px solid var(--concept-line);border-radius:18px;padding:clamp(.4rem,2vw,1.1rem) clamp(1rem,3vw,1.5rem);background:var(--concept-surface)}
.order-details>div{min-width:0;padding:.85rem 0;border-bottom:1px solid var(--concept-line)}
.order-details dt{margin-bottom:.25rem;color:var(--concept-muted);font-size:.65rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.order-details dd{margin:0;font-size:.88rem;white-space:pre-line;overflow-wrap:anywhere}
.order-details .is-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;unicode-bidi:isolate}
.order-details__tracking{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem 1rem}
.order-details__action{min-height:44px;display:inline-flex;align-items:center;color:var(--concept-brand);font-weight:800;text-decoration:underline;text-underline-offset:.2em}
.order-extra{padding:clamp(1rem,3vw,1.5rem);border:1px solid var(--concept-line);border-radius:18px;background:var(--concept-surface)}
.order-extra h3{margin:0;font-size:clamp(1.2rem,3vw,1.55rem)}
.order-extra p{margin:.75rem 0 0;color:var(--concept-muted)}
.order-extra__actions{margin-top:1rem;display:flex;flex-wrap:wrap;gap:.7rem}
.order-secondary-action{min-height:44px;padding:.65rem .9rem;border:1px solid var(--concept-line);border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:var(--concept-brand);font-weight:800;text-decoration:none;cursor:pointer}
.order-photo{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem}
.order-photo-dialog{width:min(900px,calc(100% - 2rem));max-height:calc(100dvh - 2rem);padding:1rem;border:1px solid var(--concept-line);border-radius:20px;background:var(--concept-surface);color:var(--concept-ink)}
.order-photo-dialog::backdrop{background:rgba(17,19,21,.66)}
.order-photo-dialog h3{margin:0 3rem 1rem 0;font-size:1.25rem}
[dir=rtl] .order-photo-dialog h3{margin:0 0 1rem 3rem}
.order-photo-dialog__close{position:absolute;top:.65rem;inset-inline-end:.65rem;width:44px;height:44px;border:0;border-radius:50%;background:var(--paper-deep);color:var(--concept-ink);font-size:1.6rem;cursor:pointer}
.order-photo-dialog__image{width:100%;max-height:calc(100dvh - 7rem);object-fit:contain}
.order-bonus{border-color:rgba(169,95,45,.3);background:#fbf2e9}
@media(max-width:900px){
  .order-summary{grid-template-columns:minmax(0,1fr) minmax(145px,.65fr) auto}
  .order-summary__identity{grid-column:1}.order-summary__status{grid-column:2}.order-summary__date{grid-column:1}.order-summary__total{grid-column:2}.order-card__toggle{grid-column:3;grid-row:1/span 2}
}
@media(max-width:760px){
  .orders-hero .orders-shell{min-height:330px}.orders-hero__mark{display:none}.orders-section-head{display:block}.orders-section-head>p{margin-top:1rem}
  .order-progress{grid-template-columns:1fr}
  .order-progress:before,.order-progress:after{top:15px;bottom:15px;inset-inline-start:15px;inset-inline-end:auto;width:2px;height:auto}
  .order-progress:after{height:calc(var(--progress) * .8333);background:var(--concept-brand)}
  .order-progress li{min-height:67px;padding:0 0 0 47px;text-align:start}
  [dir=rtl] .order-progress li{padding:0 47px 0 0}
  .order-progress i{position:absolute;inset-inline-start:0;top:0;margin:0}
  .order-progress__label{min-height:0;padding-top:.1rem}
  .order-progress time,.order-progress small{display:inline-block;margin-top:.25rem}
  .order-details{grid-template-columns:1fr}
}
@media(max-width:560px){
  .orders-shell{width:min(calc(100% - 1.4rem),1180px)}
  .order-summary{padding:1rem;grid-template-columns:minmax(0,1fr) 44px;gap:.85rem}
  .order-summary__identity,.order-summary__status,.order-summary__date,.order-summary__total{grid-column:1}
  .order-card__toggle{grid-column:2;grid-row:1/span 4;min-width:44px;width:44px;height:44px;padding:0}
  .order-card__toggle-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .order-summary__identity{grid-template-columns:40px minmax(0,1fr)}.order-card__number{width:40px;height:40px}
  .order-summary__label{display:inline;margin-inline-end:.4rem}.order-summary__date strong,.order-summary__total strong{display:inline}
  .order-card__body{padding:1.15rem}.order-extra__actions{display:grid}.order-extra__actions>*{width:100%}
  .orders-hero h1{font-size:3.5rem}
}
@media(max-width:360px){.order-card__number{display:none}.order-summary__identity{display:block}}
@media(prefers-reduced-motion:reduce){.orders-spinner{animation:none}}
