/* ============ SIPARIS TAKIP SAYFASI ============ */
.tr {
    background: var(--blush);
    padding-bottom: 100px;
}

.tr-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rose-deep);
    padding: 22px 11px 0;
}

.tr-crumbs a:hover {
    text-decoration: underline;
}

.tr-crumbs span {
    color: var(--ink-40);
}

.tr-crumbs b {
    font-weight: 400;
    color: var(--ink-60);
}

/* ---- hero ---- */
.tr-hero {
    padding: 36px 0 34px;
}

.tr-hero .h-sec {
    margin-top: 8px;
}

.tr-hero .lead {
    margin-top: 14px;
}

/* ---- arama kartı ---- */
.tr-search {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 32px;
    box-shadow: var(--sh-1);
    margin-bottom: 40px;
}

.tr-search__row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.tr-field label {
    display: block;
    font-size: 12.5px;
    color: var(--ink-40);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.tr-field input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--cream);
    font-size: 14.5px;
    font-weight: 300;
}

.tr-field input::placeholder {
    color: var(--ink-40);
}

.tr-field input:focus {
    outline: none;
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(214, 86, 127, .12);
}

.tr-search__btn {
    white-space: nowrap;
    height: 49px;
    padding-inline: 26px;
}

.tr-search__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--ink-40);
}

.tr-search__note svg {
    width: 15px;
    height: 15px;
    stroke: var(--ink-40);
    stroke-width: 1.8;
    fill: none;
}

.tr-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.86rem;
    margin-top: 18px;
    line-height: 1.45;
    font-weight: 500;
    background: #FFF0F2;
    color: #C62828;
    border: 1px solid rgba(198, 40, 40, .15);
}

/* ---- sonuç kartı ---- */
.tr-result {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
    padding: 30px 32px 34px;
    display: none;
}

.tr-result.on {
    display: block;
}

.tr-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: var(--r-pill);
    font-size: 12.5px;
    font-weight: 500;
}

.tr-badge--pending {
    background: #FFF6E5;
    color: #B4790A;
}

.tr-badge--confirmed {
    background: #E9F5FF;
    color: #1668B6;
}

.tr-badge--preparing {
    background: #F1ECFF;
    color: #6A3FD6;
}

.tr-badge--shipped {
    background: #EAF3FF;
    color: #2461C7;
}

.tr-badge--delivered {
    background: #EEF8F2;
    color: #2E7D32;
}

.tr-badge--cancelled {
    background: #FFF0F2;
    color: #C62828;
}

.tr-badge--returned {
    background: #F4F1EC;
    color: #7A6A50;
}

.tr-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.tr-head__l {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tr-head__ic {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--rose-soft), var(--sand));
}

.tr-head__ic svg {
    width: 24px;
    height: 24px;
    stroke: var(--rose-deep);
    stroke-width: 1.6;
    fill: none;
}

.tr-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 42px;
    margin-top: -4px;
}

.tr-meta__item small {
    display: block;
    color: var(--ink-40);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.tr-meta__item b {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 1.02rem;
    color: var(--ink);
}

/* ---- zaman çizelgesi ---- */
.tr-timeline {
    display: flex;
    align-items: flex-start;
    margin: 8px 0 30px;
}

.tr-tl-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.tr-tl-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blush);
    border: 2px solid var(--line);
    color: var(--ink-40);
    transition: background 0.4s, border-color 0.4s, color 0.4s;
}

.tr-tl-dot svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.tr-tl-step.done .tr-tl-dot {
    background: var(--plum);
    border-color: var(--plum);
    color: var(--cream);
}

.tr-tl-step.current .tr-tl-dot {
    background: var(--rose);
    border-color: var(--rose);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(214, 86, 127, .16);
    animation: tr-pulse 1.8s ease-in-out infinite;
}

@keyframes tr-pulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(214, 86, 127, .16); }
    50% { box-shadow: 0 0 0 10px rgba(214, 86, 127, .06); }
}

.tr-tl-label {
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-60);
}

.tr-tl-step.done .tr-tl-label,
.tr-tl-step.current .tr-tl-label {
    color: var(--ink);
}

.tr-tl-date {
    margin-top: 3px;
    font-size: 11px;
    color: var(--ink-40);
}

.tr-tl-line {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--line);
    z-index: -1;
}

.tr-tl-line.done {
    background: var(--plum);
}

.tr-tl-step:last-child .tr-tl-line {
    display: none;
}

.tr-cancelled-note {
    color: #C62828;
    font-size: 13.5px;
    margin: 0 0 24px;
    padding: 12px 16px;
    background: #FFF5F5;
    border-radius: 12px;
}

/* ---- kargo kutusu ---- */
.tr-cargo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--blush);
    border-radius: var(--r-md);
    padding: 18px 22px;
    margin-bottom: 30px;
}

.tr-cargo__info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.tr-cargo__info small {
    display: block;
    color: var(--ink-40);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.tr-cargo__info b {
    font-size: 14.5px;
    color: var(--ink);
}

/* ---- ürünler ---- */
.tr-items__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.tr-items__head h3 {
    font-size: 1.15rem;
}

.tr-item-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.tr-item-row:last-child {
    border-bottom: 0;
}

.tr-item-row__thumb {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(150deg, var(--sand), var(--rose-soft));
}

.tr-item-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tr-item-row__info {
    flex: 1;
    min-width: 0;
}

.tr-item-row__info b {
    display: block;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
}

.tr-item-row__info small {
    color: var(--ink-40);
    font-size: 12.5px;
}

.tr-item-row__qty {
    color: var(--ink-60);
    font-size: 13.5px;
    white-space: nowrap;
}

.tr-item-row__price {
    font-weight: 500;
    white-space: nowrap;
}

.tr-skel {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 0;
    color: var(--ink-40);
    font-size: 13.5px;
}

.tr-skel.on {
    display: flex;
}

.tr-skel svg {
    width: 20px;
    height: 20px;
    animation: tr-spin 0.9s linear infinite;
}

@keyframes tr-spin {
    to { transform: rotate(360deg); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .tr-search__row {
        grid-template-columns: 1fr;
    }

    .tr-search__btn {
        width: 100%;
    }

    .tr-tl-label {
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    .tr-search {
        padding: 22px 20px;
    }

    .tr-result {
        padding: 22px 18px 26px;
    }

    .tr-timeline {
        flex-wrap: wrap;
        row-gap: 26px;
    }

    .tr-tl-step {
        flex: 0 0 33.33%;
    }

    .tr-tl-line {
        display: none;
    }

    .tr-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tr-meta {
        gap: 18px 28px;
    }

    .tr-item-row {
        flex-wrap: wrap;
    }

    .tr-item-row__price {
        margin-left: auto;
    }
}
