.special-orders-page {
    min-height: 70vh;
    padding: clamp(1.5rem, 4vw, 4rem) 0;
    background:
        radial-gradient(circle at 85% 5%, rgba(187, 143, 59, 0.13), transparent 30rem),
        #f8f6f1;
}

.special-orders-shell {
    display: grid;
    gap: 1.25rem;
    max-width: 1080px;
}

.special-orders-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: #fff;
    border-radius: 0;
    background:
        linear-gradient(125deg, rgba(26, 22, 17, 0.97), rgba(70, 53, 29, 0.94)),
        #211c15;
    box-shadow: 0 1.2rem 3rem rgba(44, 34, 18, 0.18);
}

.special-orders-hero > div > span,
.special-order-guide > span,
.special-order-form-panel > header > span {
    color: #d8b766;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.special-orders-hero h1,
.special-order-guide h1,
.special-order-form-panel h2 {
    margin: 0.45rem 0 0.7rem;
    font-size: var(--text-heading-1);
    line-height: 1.3;
}

.special-orders-hero p {
    max-width: 42rem;
    margin: 0;
    color: #d7d1c7;
    line-height: 1.9;
}

.special-orders-back {
    display: block;
    width: fit-content;
    margin-bottom: 1rem;
    color: inherit;
    font-size: 0.8rem;
    text-decoration: underline;
    text-underline-offset: 0.3rem;
    opacity: 0.82;
}

.special-order-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.special-order-filters a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    min-height: 3.7rem;
    padding: 0.75rem 1rem;
    color: #4e473c;
    border: 1px solid #e3dccf;
    border-radius: 0;
    background: #fff;
    transition: 160ms ease;
}

.special-order-filters a:hover,
.special-order-filters a.active {
    border-color: #a8843b;
    box-shadow: 0 0.7rem 1.7rem rgba(73, 55, 24, 0.1);
    transform: translateY(-2px);
}

.special-order-filters strong {
    display: grid;
    min-width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: #f1ece2;
}

.special-order-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.special-order-card {
    display: grid;
    gap: 1.15rem;
    padding: 1.35rem;
    border: 1px solid #e4ddd2;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 0.6rem 1.8rem rgba(49, 38, 20, 0.06);
}

.special-order-card > header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.special-order-card > header span:first-child,
.special-order-card time {
    color: #867c6d;
    font-size: 0.72rem;
}

.special-order-card h2 {
    margin: 0.3rem 0;
    font-size: 1.1rem;
}

.special-order-status {
    flex: none;
    padding: 0.36rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 999px;
}

.special-order-status--pending { color: #785715; background: #f7e9c5; }
.special-order-status--accepted { color: #286049; background: #dcefe5; }
.special-order-status--rejected { color: #873b33; background: #f5dfdc; }

.special-order-gallery {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.special-order-gallery a {
    flex: 0 0 6.6rem;
    overflow: hidden;
    border-radius: 0.8rem;
    background: #eee9df;
}

.special-order-gallery img {
    width: 100%;
    height: 6.6rem;
    object-fit: cover;
}

.special-order-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0;
}

.special-order-specs div {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: #f8f5ef;
}

.special-order-specs dt {
    color: #8a8174;
    font-size: 0.7rem;
}

.special-order-specs dd {
    margin: 0.22rem 0 0;
    color: #342f28;
    font-size: 0.86rem;
    font-weight: 800;
}

.special-order-description {
    border-top: 1px solid #eee8dd;
}

.special-order-description summary {
    padding-top: 1rem;
    color: #76591f;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.special-order-description p {
    margin-bottom: 0;
    color: #625b51;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.9;
}

.special-order-create-shell {
    display: grid;
    grid-template-columns: minmax(17rem, 0.78fr) minmax(0, 1.35fr);
    overflow: hidden;
    border: 1px solid #e1d9ca;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 1.3rem 3.6rem rgba(52, 39, 18, 0.11);
}

.special-order-guide {
    padding: clamp(1.5rem, 4vw, 3rem);
    color: #fff;
    background: linear-gradient(155deg, #211d17, #493a25);
}

.special-order-guide > p {
    color: #d2cbc0;
    line-height: 1.9;
}

.special-order-guide__steps {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.special-order-guide__steps > div {
    display: grid;
    grid-template-columns: 2.2rem 1fr;
    gap: 0.8rem;
}

.special-order-guide__steps > div > strong {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    color: #2c2417;
    border-radius: 50%;
    background: #d8b766;
}

.special-order-guide__steps span {
    color: #bfb7aa;
    font-size: 0.78rem;
    line-height: 1.65;
}

.special-order-guide__steps b {
    display: block;
    color: #fff;
    font-size: 0.9rem;
}

.special-order-guide__note {
    padding: 1rem;
    color: #ded6c9;
    font-size: 0.78rem;
    line-height: 1.8;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.06);
}

.special-order-form-panel {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.special-order-form-panel > header p {
    margin: 0;
    color: #7c7367;
}

.special-order-form {
    display: grid;
    gap: 1.1rem;
    margin-top: 2rem;
}

.special-order-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.special-order-images {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
    border: 1px dashed #c9bda9;
    border-radius: 0.9rem;
    background: #faf8f4;
}

.special-order-images > label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 800;
}

.special-order-images > label span,
.special-order-images > small {
    color: #897e6d;
    font-size: 0.72rem;
    font-weight: 400;
}

.special-order-images--error { border-color: #b83e35; }
.special-order-images--error > small { color: #a8332a; }

.special-order-image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    gap: 0.65rem;
}

.special-order-image-previews figure {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 0.4rem;
    border-radius: 0.8rem;
    background: #eee7da;
}

.special-order-image-previews img {
    width: 100%;
    height: 7rem;
    object-fit: cover;
    border-radius: 0.55rem;
}

.special-order-image-previews figcaption {
    padding-top: 0.35rem;
    overflow: hidden;
    color: #6e6558;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.special-order-image-previews button {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    display: grid;
    width: 1.7rem;
    height: 1.7rem;
    place-items: center;
    color: #fff;
    border: 0;
    border-radius: 50%;
    background: rgba(49, 36, 28, 0.82);
}

.special-order-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    padding-top: 0.5rem;
}

@media (max-width: 820px) {
    .special-orders-hero {
        align-items: stretch;
        flex-direction: column;
    }
    .special-order-create-shell,
    .special-order-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .special-orders-page { padding: 1rem 0 2rem; }
    .special-orders-hero { border-radius: 0; }
    .special-order-filters,
    .special-order-form__row { grid-template-columns: 1fr; }
    .special-order-specs { grid-template-columns: 1fr; }
    .special-order-images > label { flex-direction: column; gap: 0.2rem; }
    .special-order-form__actions { flex-direction: column-reverse; }
}
