/* Sipariş takibi sayfası (inc/tracking.php). Adım çubuğu ve etiketler: account.css (.acc .hs, .acc .tag). */
.trk .pd-crumbs { padding-top: 28px; }
.trk__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; margin-top: 14px; }
.trk__main { min-width: 0; }
.trk__title { margin: 0 0 12px; font-size: 44px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.trk-kick { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.trk__h { margin: 0 0 8px; font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.trk__link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.trk__link:hover { text-decoration-color: var(--ink); }

/* Form */
.trk-form { display: grid; gap: 22px; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.trk-form__lead { margin: 0; max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.trk-form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trk-form .form-row { display: grid; gap: 8px; margin: 0; padding: 0; width: auto; float: none; }
.trk-form label { font-size: 13px; font-weight: 600; color: var(--ink); }
.trk-form input.input-text { height: 52px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; font: 15px/1 var(--font); color: var(--ink); }
.trk-form input.input-text:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--ink); }
.trk-form__btn { justify-self: start; border: 0; }
.trk .woocommerce-error, .trk .woocommerce-message, .trk .woocommerce-info { margin: 0 0 20px; }

/* Yardım sütunu */
.trk__side { display: grid; gap: 16px; }
.trk__box { display: grid; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.trk__box p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.trk__box p b { color: var(--ink); }
.trk__box.is-stone { background: var(--stone); border-color: transparent; }
.trk__box .eb { justify-self: start; margin-top: 4px; }

/* Sonuç */
.trk-res { display: grid; gap: 6px; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.trk-res__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.trk-res__title { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.trk-res__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.trk-res__thumbs { display: flex; }
.trk-res__thumbs img { width: 44px; height: 54px; object-fit: cover; border-radius: 8px; border: 2px solid #fff; }
.trk-res__thumbs img + img { margin-left: -12px; }
.trk-res__meta { color: var(--muted); font-size: 14px; }
.trk-res__foot .trk__link { margin-left: auto; }
.trk-notes { margin-top: 20px; padding: 28px 32px; border-radius: 24px; background: var(--stone); }
.trk-notes__list { display: grid; gap: 14px; margin: 12px 0 0; padding: 0; list-style: none; }
.trk-notes__list li { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--gold); }
.trk-notes__list time { font-size: 12px; color: var(--muted); }
.trk-notes__list p { margin: 0; font-size: 14px; }
.trk-details { margin-top: 32px; }
.trk-details h2 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }

@media (max-width: 1100px) {
	.trk__grid { grid-template-columns: 1fr; gap: 32px; }
	.trk__side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 720px) {
	.trk__title { font-size: 32px; }
	.trk-form, .trk-res { padding: 22px; border-radius: 20px; }
	.trk-form__fields { grid-template-columns: 1fr; }
	.trk-form__btn { justify-self: stretch; justify-content: space-between; }
	.trk-res__head { flex-direction: column; }
	.trk-res__foot .trk__link { margin-left: 0; }
	.trk-notes { padding: 22px; }
}

/* Sayfa yolu: bu sayfada product.css yüklenmez, temel stil burada. */
.trk .pd-crumbs { padding: 28px 0 8px; font-size: 13px; color: var(--muted); }
.trk .pd-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; }
.trk .pd-crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.trk .pd-crumbs li + li::before { content: "/"; color: var(--line-strong); }
.trk .pd-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.trk .pd-crumbs [aria-current] { color: var(--ink); }

/* WooCommerce genel stilinin (.woocommerce form .form-row ...) alanları ezmesini önler. */
.trk .trk-form .form-row { margin: 0; padding: 0; }
.trk .trk-form .form-row label { margin: 0; line-height: 1.3; }
.trk .trk-form .form-row input.input-text { width: 100%; height: 54px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; box-shadow: none; font: 15px/1 var(--font); color: var(--ink); transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.trk .trk-form .form-row input.input-text::placeholder { color: #8a8a8a; }
.trk .trk-form .form-row input.input-text:hover { border-color: #bdb8ad; }
.trk .trk-form .form-row input.input-text:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold-light); }

/* Başlık ve form kartı */
.trk__title { font-size: 40px; }
.trk-form { gap: 24px; padding: 36px; }
.trk-form__lead { font-size: 16px; color: var(--ink-2); }
.trk-flow { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 4px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 13px; color: var(--muted); }
.trk-flow li { display: inline-flex; align-items: center; gap: 10px; }
.trk-flow span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--stone); color: var(--ink); }

/* Sonuç: aşamalar kartın tam genişliğinde, daha okunur */
.trk-res { gap: 0; }
.trk-res__head { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.trk.acc .trk-res .hs { display: flex; width: 100%; max-width: none; margin: 28px 0; }
.trk.acc .trk-res .hs li { flex: 1 1 0; }
.trk.acc .trk-res .hs li:last-child { flex: 0 0 32px; }
/* Son aşama dairesi sağ kenarda; etiketi daireye sağdan hizalı, sola doğru uzar. */
.trk.acc .trk-res .hs li:last-child span { position: absolute; top: 42px; right: 0; }
.trk.acc .trk-res .hs li span { white-space: nowrap; }
.trk.acc .trk-res .hs li { gap: 10px; font-size: 14px; }
.trk.acc .trk-res .hs li::before { top: 15px; left: 32px; height: 2px; }
.trk.acc .trk-res .hs i { width: 32px; height: 32px; }
.trk-res .otr-ship { margin-bottom: 22px; }

/* Sipariş detayları tablosu (WooCommerce order-details) kart görünümünde */
.trk-details h2 { margin: 0 0 14px; }
.trk .trk-details table.shop_table { width: 100%; margin: 0; border: 1px solid var(--line); border-radius: 20px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; font-size: 15px; }
.trk .trk-details table.shop_table th, .trk .trk-details table.shop_table td { padding: 16px 24px; border: 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; color: var(--ink); }
.trk .trk-details table.shop_table thead th { border-top: 0; background: var(--stone); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.trk .trk-details table.shop_table td:last-child, .trk .trk-details table.shop_table th:last-child { text-align: right; }
.trk .trk-details table.shop_table tfoot th { color: var(--muted); }
.trk .trk-details table.shop_table tfoot tr:nth-last-child(2) th, .trk .trk-details table.shop_table tfoot tr:nth-last-child(2) td { font-size: 17px; font-weight: 600; color: var(--ink); }
.trk .trk-details .product-quantity { font-weight: 400; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
	.trk .trk-form .form-row input.input-text { transition: none; }
}
@media (max-width: 720px) {
	.trk__title { font-size: 30px; }
	.trk-form { padding: 22px; gap: 20px; }
	.trk-flow { gap: 12px; flex-direction: column; }
	.trk.acc .trk-res .hs li { font-size: 12px; }
	.trk .trk-details table.shop_table th, .trk .trk-details table.shop_table td { padding: 14px 16px; }
}
