/* Sipariş Takip (/siparis-takip) — Ceviz 18 tasarım dili */
.ot {
    --ot-ink: #1C1F1A;
    --ot-forest: #22251F;
    --ot-muted: #5F625C;
    --ot-line: #E7E2D8;
    --ot-paper: #FAF8F5;
    --ot-orange: #F28C28;
    --ot-orange-dk: #E0780F;
    --ot-orange-soft: #FFF3E6;
    --ot-walnut: #A9530A;
    --ot-green: #2F7A45;
    --ot-green-soft: #EAF5EC;
    --ot-red: #B42318;
    --ot-red-soft: #FDECEA;
    --ot-amber: #A15C07;
    --ot-amber-soft: #FEF4E2;
    background: var(--ot-paper);
    color: var(--ot-ink);
    font-family: "Poppins", system-ui, sans-serif;
}

.ot *,
.ot *::before,
.ot *::after {
    box-sizing: border-box;
}

/* Hero yazısı ile kartlar aynı sütunda başlasın */
.ot-hero__inner {
    max-width: 62rem;
    margin-left: auto;
    margin-right: auto;
}

.ot .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero */
.ot-hero {
    position: relative;
    overflow: hidden;
    padding: 2.6rem 0 4.2rem;
    background:
        radial-gradient(circle at 88% 20%, rgba(242, 140, 40, .22), transparent 42%),
        radial-gradient(circle at 12% 110%, rgba(242, 140, 40, .12), transparent 45%),
        var(--ot-forest);
    color: var(--ot-paper);
}

.ot-kicker {
    margin: 0 0 .45rem;
    color: #E7C48A;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ot-hero h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.01em;
}

.ot-lead {
    max-width: 40rem;
    margin: .85rem 0 0;
    color: #EFE7D8;
    font-size: 1.02rem;
    line-height: 1.65;
}

.ot-body {
    position: relative;
    margin-top: -2.4rem;
    padding-bottom: 3.5rem;
}

/* Kart */
.ot-card {
    background: #fff;
    border: 1px solid var(--ot-line);
    border-radius: 18px;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 18px 44px -24px rgba(34, 37, 31, .28);
}

.ot-card__head {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1.15rem;
}

.ot-card__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: var(--ot-orange-soft);
    color: var(--ot-walnut);
}

.ot-card__head h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ot-forest);
}

.ot-card__head p {
    margin: .3rem 0 0;
    color: var(--ot-muted);
    font-size: .9rem;
    line-height: 1.5;
}

.ot-card__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ot-forest);
}

.ot-count {
    color: var(--ot-muted);
    font-weight: 600;
}

/* Form düzeni */
.ot-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
    gap: 1.25rem;
    align-items: start;
    max-width: 62rem;
    margin: 0 auto;
}

.ot-form {
    display: grid;
    gap: 1rem;
}

.ot-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ot-field {
    display: grid;
    gap: .35rem;
}

.ot-field label {
    font-size: .88rem;
    font-weight: 700;
    color: var(--ot-forest);
}

.ot-field input {
    width: 100%;
    min-height: 3rem;
    padding: .7rem .95rem;
    border: 1.5px solid #D9D0C2;
    border-radius: 12px;
    background: #fff;
    color: var(--ot-ink);
    font: inherit;
    font-size: 1rem; /* iOS yakınlaştırmasın */
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}

.ot-field input::placeholder {
    color: #9A958D;
}

.ot-field input:focus {
    outline: none;
    border-color: var(--ot-orange);
    box-shadow: 0 0 0 4px rgba(242, 140, 40, .18);
}

.ot-field input[aria-invalid="true"] {
    border-color: #E5A29B;
}

.ot-field small {
    color: var(--ot-muted);
    font-size: .78rem;
    line-height: 1.4;
}

.ot-alert {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: 0 0 1rem;
    padding: .8rem .95rem;
    border-radius: 12px;
    background: var(--ot-red-soft);
    color: #7A1D14;
}

.ot-alert .m18-icon {
    flex: 0 0 auto;
    margin-top: .1rem;
}

.ot-alert p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
}

.ot-member {
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--ot-line);
    color: var(--ot-muted);
    font-size: .86rem;
    line-height: 1.5;
}

.ot-member a,
.ot-perks a {
    color: var(--ot-walnut);
    font-weight: 700;
}

/* Butonlar */
.ot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3rem;
    padding: .7rem 1.25rem;
    border: 1.5px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}

.ot-btn--primary {
    background: var(--ot-orange);
    color: #fff;
}

.ot-btn--primary:hover {
    background: var(--ot-orange-dk);
    color: #fff;
}

.ot-btn--ghost {
    border-color: var(--ot-line);
    background: #fff;
    color: var(--ot-forest);
}

.ot-btn--ghost:hover {
    border-color: var(--ot-forest);
    color: var(--ot-forest);
}

.ot-btn:focus-visible,
.ot-copy:focus-visible,
.ot-item__name a:focus-visible {
    outline: 3px solid rgba(242, 140, 40, .55);
    outline-offset: 2px;
}

.ot-btn.is-loading {
    opacity: .7;
    cursor: progress;
}

.ot-form .ot-btn {
    width: 100%;
    margin-top: .2rem;
}

/* Yan bilgi */
.ot-perks {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ot-perks li {
    display: flex;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid var(--ot-line);
    border-radius: 16px;
    background: #fff;
}

.ot-perks li > span {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--ot-paper);
    color: var(--ot-walnut);
}

.ot-perks strong {
    display: block;
    font-size: .92rem;
    color: var(--ot-forest);
}

.ot-perks p {
    margin: .2rem 0 0;
    color: var(--ot-muted);
    font-size: .84rem;
    line-height: 1.5;
}

/* Sonuç */
.ot-result {
    max-width: 62rem;
    margin: 0 auto;
    outline: none;
}

.ot-summary__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ot-summary__label {
    margin: 0;
    color: var(--ot-muted);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ot-summary__number {
    margin: .2rem 0 0;
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ot-forest);
    word-break: break-all;
}

.ot-summary__text {
    margin: .8rem 0 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ot-ink);
}

.ot-badge {
    flex: 0 0 auto;
    padding: .4rem .8rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}

.ot-badge--green { background: var(--ot-green-soft); color: var(--ot-green); }
.ot-badge--blue { background: #E8F0FB; color: #1F4E8C; }
.ot-badge--yellow { background: var(--ot-amber-soft); color: var(--ot-amber); }
.ot-badge--red { background: var(--ot-red-soft); color: var(--ot-red); }
.ot-badge--gray { background: #F0EEEA; color: #4A4D47; }

.ot-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: 1.15rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--ot-line);
}

.ot-meta div,
.ot-ship__list div {
    min-width: 0;
}

.ot-meta dt,
.ot-ship__list dt {
    color: var(--ot-muted);
    font-size: .76rem;
    font-weight: 600;
}

.ot-meta dd,
.ot-ship__list dd {
    margin: .2rem 0 0;
    color: var(--ot-ink);
    font-size: .92rem;
    font-weight: 600;
}

.ot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
    align-items: start;
}

.ot-col {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

/* Zaman çizelgesi */
.ot-steps {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ot-step {
    position: relative;
    display: flex;
    gap: .9rem;
    padding-bottom: 1.35rem;
}

.ot-step:last-child {
    padding-bottom: 0;
}

/* Bağlantı çizgisi */
.ot-step::before {
    content: "";
    position: absolute;
    top: 2.1rem;
    bottom: .15rem;
    left: 1rem;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: var(--ot-line);
}

.ot-step:last-child::before {
    display: none;
}

.ot-step--completed::before {
    background: var(--ot-green);
}

.ot-step__dot {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--ot-line);
    border-radius: 50%;
    background: #fff;
    color: #A8A39B;
}

.ot-step--completed .ot-step__dot {
    border-color: var(--ot-green);
    background: var(--ot-green);
    color: #fff;
}

.ot-step--active .ot-step__dot {
    border-color: var(--ot-orange);
    background: var(--ot-orange);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(242, 140, 40, .2);
    animation: ot-pulse 2.2s ease-out infinite;
}

.ot-step--skipped .ot-step__dot {
    border-style: dashed;
    color: #C9C4BB;
}

.ot-step--outcome .ot-step__dot {
    border-color: var(--ot-red);
    background: var(--ot-red);
    color: #fff;
}

.ot-step--partial .ot-step__dot,
.ot-step--return .ot-step__dot {
    border-color: var(--ot-amber);
    background: var(--ot-amber);
}

.ot-step--returned .ot-step__dot {
    border-color: #4A4D47;
    background: #4A4D47;
}

@keyframes ot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(242, 140, 40, .35); }
    70% { box-shadow: 0 0 0 8px rgba(242, 140, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(242, 140, 40, 0); }
}

.ot-step__body {
    min-width: 0;
    padding-top: .25rem;
}

.ot-step__label {
    margin: 0;
    color: var(--ot-ink);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
}

.ot-step--pending .ot-step__label,
.ot-step--skipped .ot-step__label {
    color: #9A958D;
    font-weight: 600;
}

.ot-step--skipped .ot-step__label {
    text-decoration: line-through;
    text-decoration-color: rgba(154, 149, 141, .6);
}

.ot-step__time {
    display: block;
    margin-top: .2rem;
    color: var(--ot-muted);
    font-size: .8rem;
}

.ot-step--active .ot-step__time {
    color: var(--ot-walnut);
    font-weight: 600;
}

.ot-step__note {
    margin: .35rem 0 0;
    color: var(--ot-muted);
    font-size: .84rem;
    line-height: 1.5;
}

/* Kargo */
.ot-ship {
    border-color: #F6D9B8;
    background: linear-gradient(180deg, #FFFAF4 0%, #fff 60%);
}

.ot-ship__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem 1rem;
    margin: 0;
}

.ot-ship__code {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .02em;
    word-break: break-all;
}

.ot-copy {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .55rem;
    border: 1px solid var(--ot-line);
    border-radius: 8px;
    background: #fff;
    color: var(--ot-walnut);
    font-family: "Poppins", system-ui, sans-serif;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
}

.ot-copy:hover {
    border-color: var(--ot-orange);
}

.ot-ship__btn {
    width: 100%;
    margin-top: 1.1rem;
}

.ot-ship__wait {
    margin: 1rem 0 0;
    color: var(--ot-muted);
    font-size: .85rem;
}

/* Ürünler */
.ot-items {
    display: grid;
    gap: .2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ot-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem 0;
    border-bottom: 1px solid #F1ECE3;
}

.ot-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ot-item__img {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    overflow: hidden;
    border: 1px solid var(--ot-line);
    border-radius: 12px;
    background: var(--ot-paper);
    color: #A8A39B;
}

.ot-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ot-item__body {
    flex: 1 1 auto;
    min-width: 0;
}

.ot-item__name {
    margin: 0;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.35;
}

.ot-item__name a {
    color: var(--ot-ink);
    text-decoration: none;
}

.ot-item__name a:hover {
    color: var(--ot-walnut);
    text-decoration: underline;
}

.ot-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin: .25rem 0 0;
    color: var(--ot-muted);
    font-size: .8rem;
}

.ot-item__price {
    flex: 0 0 auto;
    font-size: .92rem;
    font-weight: 700;
    white-space: nowrap;
}

.ot-item.is-cancelled .ot-item__name,
.ot-item.is-cancelled .ot-item__price {
    color: #9A958D;
    text-decoration: line-through;
}

.ot-chip {
    padding: .12rem .45rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
}

.ot-chip--red { background: var(--ot-red-soft); color: var(--ot-red); }
.ot-chip--amber { background: var(--ot-amber-soft); color: var(--ot-amber); }

.ot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.ot-privacy {
    margin: 1rem 0 0;
    color: var(--ot-muted);
    font-size: .8rem;
    line-height: 1.5;
}

/* Tablet */
@media (max-width: 900px) {
    .ot-layout,
    .ot-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Mobilde önce kargo + ürünler değil, durum en üstte kalsın */
    .ot-grid .ot-col:first-child {
        order: 0;
    }
}

/* Telefon */
@media (max-width: 560px) {
    .ot-hero {
        padding: 1.9rem 0 3.6rem;
    }

    .ot-lead {
        font-size: .95rem;
    }

    .ot-body {
        margin-top: -2rem;
        padding-bottom: 2.5rem;
    }

    .ot-card {
        padding: 1.1rem 1rem;
        border-radius: 16px;
    }

    .ot-summary__top {
        flex-direction: column;
        gap: .6rem;
    }

    .ot-meta {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .ot-meta div:last-child {
        grid-column: 1 / -1;
    }

    .ot-ship__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .ot-item__img {
        width: 3.4rem;
        height: 3.4rem;
    }

    .ot-actions .ot-btn {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ot-step--active .ot-step__dot {
        animation: none;
    }

    .ot-btn,
    .ot-field input {
        transition: none;
    }
}
