/* ==========================================================================
   biMARJ — Kargo ve Desi sayfası
   Yalnızca bu sayfada yüklenir (controller: pageStyles => ['shipping']).
   Hesaplama Araçları / Pazaryerleri sayfalarıyla aynı hero, kart ve
   boşluk sistemi kullanılır.
   ========================================================================== */

/* ---- Mini hero -------------------------------------------------------- */
.sh-hero{
  background:
    radial-gradient(760px 340px at 82% 20%, rgba(255,255,255,.7), transparent 60%),
    linear-gradient(112deg, #ffffff 0%, #f8fbf9 48%, #eef5f0 100%);
  border-bottom: 1px solid #e9efec;
  padding: 26px 0 30px;
}
.sh-hero-inner{
  display: grid; grid-template-columns: 1fr 230px;
  gap: 32px; align-items: center;
}
.sh-hero-copy{ min-width: 0; }

.sh-hero .breadcrumb{
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0 0 12px; padding: 0;
  font-size: 12.5px; color: #77848c;
}
.sh-hero .breadcrumb li + li:before{ content: "›"; margin-right: 8px; color: #b3bec4; }
.sh-hero .breadcrumb a{ color: #77848c; }
.sh-hero .breadcrumb a:hover{ color: var(--green); }

.sh-hero h1{
  position: relative;
  font-size: 36px; font-weight: 700; letter-spacing: -1.1px;
  line-height: 1.12; color: var(--ink);
  margin: 0 0 16px; padding-bottom: 11px;
}
.sh-hero h1:after{
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 52px; height: 3px; border-radius: 3px; background: #e85d4a;
}
.sh-hero p{
  font-size: 16px; line-height: 1.6; color: #44535f;
  margin: 0; max-width: 58ch;
}

.sh-hero-art{ position: relative; height: 150px; }
.sha{
  position: absolute; display: grid; place-items: center;
  border-radius: 14px; background: #fff;
  box-shadow: 0 8px 20px rgba(13,40,30,.10);
}
.sha svg{ fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.sha-1{ width: 62px; height: 62px; left: 8px;   top: 12px;   color: #2f72cf; }
.sha-1 svg{ width: 30px; height: 30px; }
.sha-2{ width: 54px; height: 54px; right: 6px;  top: 0;      color: #e0654a; }
.sha-2 svg{ width: 26px; height: 26px; }
.sha-3{ width: 50px; height: 50px; left: 52px;  bottom: 6px; color: #0f8a5f; }
.sha-3 svg{ width: 24px; height: 24px; }
.sha-4{ width: 46px; height: 46px; right: 22px; bottom: 20px; color: #c98a06; }
.sha-4 svg{ width: 22px; height: 22px; }

/* ---- Sayfa gövdesi ---------------------------------------------------- */
.sh-page{ padding: 30px 0 10px; }

/* ---- Üstteki 2 araç kartı --------------------------------------------- */
.sh-tools{
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin-bottom: 34px;
}
.sht{
  position: relative; display: flex; align-items: center; gap: 15px;
  background: #fff; border: 1px solid #e9edeb; border-radius: 16px;
  padding: 20px 52px 20px 18px;
  box-shadow: 0 1px 2px rgba(25,42,57,.04);
  color: inherit; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sht:hover{
  transform: translateY(-3px); border-color: #dbe4df;
  box-shadow: 0 12px 26px rgba(13,40,30,.10); text-decoration: none;
}
.sht-ic{
  width: 54px; height: 54px; flex: 0 0 54px; border-radius: 14px;
  display: grid; place-items: center;
}
.sht-ic svg{
  width: 28px; height: 28px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.sht-desi .sht-ic{ background: #ebf5ff; color: #1673cd; }
.sht-cost .sht-ic{ background: #e7f7ef; color: #058a63; }

.sht-body{ display: flex; flex-direction: column; min-width: 0; }
.sht-title{ font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.sht-desc{ font-size: 13.5px; line-height: 1.5; color: #5b6a76; margin-top: 4px; }

.sht-go{
  position: absolute; right: 16px; top: 50%; margin-top: -14px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: #f3f6f4; color: #66757f;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.sht-go svg{
  width: 15px; height: 15px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.sht:hover .sht-go{ background: var(--green); color: #fff; transform: translateX(2px); }

/* ---- Bölüm başlığı ----------------------------------------------------- */
.sh-section{ margin-bottom: 8px; }
.sh-section-title{
  position: relative;
  font-size: 21px; font-weight: 700; letter-spacing: -.5px;
  color: var(--ink); margin: 0 0 18px; padding-bottom: 10px;
}
.sh-section-title:after{
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 46px; height: 3px; border-radius: 3px; background: #e85d4a;
}

/* ---- Uyarı bandı -------------------------------------------------------- */
.sh-warn{
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff8e8; border: 1px solid #f3e2b8; border-radius: 12px;
  padding: 13px 16px; margin-bottom: 20px;
}
.sh-warn-ic{
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px;
  display: grid; place-items: center; background: #fbeecb; color: #a9740a;
}
.sh-warn-ic svg{
  width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.sh-warn p{ margin: 0; font-size: 13.5px; line-height: 1.55; color: #6b5514; }

/* ---- Kargo firması kartları --------------------------------------------- */
.sh-carriers{
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; align-items: stretch;
}
.shc{
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e9edeb; border-radius: 16px;
  padding: 18px 18px 8px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(25,42,57,.04);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.shc:hover{ border-color: #dbe4df; box-shadow: 0 10px 22px rgba(13,40,30,.08); }
.shc:before{
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 3px; background: var(--car-accent, #cfd7d3);
}

.shc-top{ display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }

.shc-logo{
  position: relative;
  width: 58px; height: 46px; flex: 0 0 58px; border-radius: 11px;
  display: grid; place-items: center; background: var(--car-soft, #f5f7f6);
  color: var(--car-accent, #5b6a76);
}
.shc-logo img{ display: block; width: auto; height: auto; max-width: 100%; object-fit: contain; }
.shc-logo-ic{
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.shc-logo b{ font-size: 10.5px; font-weight: 700; letter-spacing: .04em; margin-top: 1px; }

.shc-head{ flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shc-name{ font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.shc-meta{ font-size: 12px; color: #77848c; margin-top: 3px; line-height: 1.4; }

.shc-status{
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 20px; padding: 5px 10px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.shc-status i{ width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.shc-status.is-live{ background: #e6f4ec; color: #0f7355; }
.shc-status.is-live i{ background: #16a274; }
.shc-status.is-pending{ background: #f3f5f4; color: #6b7a84; }
.shc-status.is-pending i{ background: #b9c3c9; }

/* ---- Tarife tablosu ----------------------------------------------------- */
.shc-table-wrap{ overflow-x: auto; -webkit-overflow-scrolling: touch; }
.shc-table{
  width: 100%; border-collapse: collapse;
  font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.shc-table thead th{
  background: #f4f8f6; color: #5b6a76;
  font-size: 12px; font-weight: 600; text-align: left;
  padding: 9px 12px; border-bottom: 1px solid #e8eeeb;
}
.shc-table thead th:first-child{ border-radius: 8px 0 0 8px; }
.shc-table thead th:last-child { border-radius: 0 8px 8px 0; }
.shc-table td{
  padding: 8px 12px; border-bottom: 1px solid #f2f5f3; color: #33424e;
}
.shc-table tbody tr:last-child td{ border-bottom: 0; }
.shc-table tbody tr{ transition: background-color .15s ease; }
.shc-table tbody tr:hover{ background: #fafcfb; }
.shc-table .num{ text-align: right; white-space: nowrap; }
/* Tarifesi girilmemiş kademe: ücretsiz izlenimi vermesin */
.shc-table .num.is-empty{ color: #97a4ad; font-style: italic; font-size: 12.5px; }

.shc-empty{
  display: flex; align-items: center; gap: 9px;
  background: #f7f9f8; border: 1px dashed #e2e8e5; border-radius: 10px;
  padding: 12px; margin-bottom: 10px;
  font-size: 13px; color: #77848c;
}
.shc-empty svg{
  width: 16px; height: 16px; flex: 0 0 16px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Firma marka tonları ------------------------------------------------ */
.car-yurtici{ --car-accent: #0b5fa5; --car-soft: #eaf2fa; }
.car-aras   { --car-accent: #d32f2a; --car-soft: #fdeceb; }
.car-mng    { --car-accent: #e8701a; --car-soft: #fdf1e8; }
.car-ptt    { --car-accent: #c99a06; --car-soft: #fdf6e2; }

/* ---- Alt bilgi bandı ---------------------------------------------------- */
.sh-note{
  display: flex; align-items: flex-start; gap: 13px;
  margin: 24px 0 8px; padding: 16px 18px;
  background: #f2f9f5; border: 1px solid #dcece3; border-radius: 14px;
}
.sh-note-ic{
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  display: grid; place-items: center; background: #e0f0e7; color: #0f8a5f;
}
.sh-note-ic svg{
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.sh-note p{ margin: 0; font-size: 13.5px; line-height: 1.55; color: #44535f; }
.sh-note p + p{ margin-top: 4px; color: #5f6f7a; }
.sh-note strong{ color: var(--ink); font-weight: 600; }

/* ---- Duyarlı ------------------------------------------------------------ */
@media (max-width: 1180px){
  .sh-hero h1{ font-size: 33px; }
}
@media (max-width: 980px){
  .sh-hero-inner{ grid-template-columns: 1fr; gap: 20px; }
  .sh-hero-inner > .sh-hero-art{ display: none; }
}
@media (max-width: 760px){
  .sh-tools{ grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
  .sh-carriers{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .sh-hero{ padding: 20px 0 24px; }
  .sh-hero h1{ font-size: 28px; letter-spacing: -.8px; margin-bottom: 13px; }
  .sh-hero p{ font-size: 15px; }
  .sh-page{ padding: 24px 0 6px; }
  .sh-section-title{ font-size: 19px; margin-bottom: 16px; }
  .sht{ padding: 17px 46px 17px 16px; gap: 13px; }
  .sht-ic{ width: 48px; height: 48px; flex: 0 0 48px; }
  .sht-ic svg{ width: 25px; height: 25px; }
  .sht-title{ font-size: 15.5px; }
  .sht-desc{ font-size: 13px; }
  .shc{ padding: 16px 15px 6px; }
  .shc-top{ flex-wrap: wrap; gap: 10px; }
  .shc-status{ order: 3; }
  .shc-table{ font-size: 13px; }
  .shc-table td{ padding: 8px 10px; }
  .shc-table thead th{ padding: 8px 10px; }
  .sh-warn{ padding: 12px 14px; }
  .sh-warn p{ font-size: 13px; }
  .sh-note{ padding: 14px 15px; }
  .sh-note p{ font-size: 13px; }
}

/* ---- Grid desteklemeyen motorlar için yedek ---------------------------- */
@supports not (display: grid){
  .sh-hero-inner, .sh-tools, .sh-carriers{ font-size: 0; }
  .sh-hero-inner > *, .sh-tools > *, .sh-carriers > *{
    display: inline-block; vertical-align: top; font-size: 16px;
    box-sizing: border-box;
  }
  .sh-hero-inner > *:first-child{ width: 72%; padding-right: 3%; }
  .sh-hero-inner > *:last-child { width: 26%; }
  .sh-tools > *, .sh-carriers > *{ width: 49%; margin-right: .8%; margin-bottom: 16px; }
  /* NOT: burada .sht{display:block} YAZILMAZ — aynı özgüllükte ve daha
     sonra geldiği için .sh-tools > * inline-block kuralını ezip kartları
     alt alta düşürüyordu. */
  .sht-ic, .sht-go, .shc-logo, .sh-warn-ic, .sh-note-ic{
    display: inline-block; text-align: center;
  }
  .sht-ic{ line-height: 54px; }
  .shc-logo{ line-height: 46px; }
  .sh-warn-ic{ line-height: 30px; }
  .sh-note-ic{ line-height: 34px; }
}
@media (max-width: 760px){
  @supports not (display: grid){
    .sh-tools > *, .sh-carriers > *{ width: 100%; margin-right: 0; }
    .sh-hero-inner > *:first-child, .sh-hero-inner > *:last-child{ width: 100%; padding-right: 0; }
  }
}

/* ==========================================================================
   Kargo firması logoları — orijinal marka varlıkları
   Logo alanı genişletildi; kart başlığı ve durum rozeti sıkışmasın diye
   kutu sabit genişlikte ve esnemiyor (flex: 0 0).
   ========================================================================== */
.shc-logo{
  width: 100px; height: 44px; flex: 0 0 100px;
  padding: 0 6px; box-sizing: border-box;
}
.shc-logo img{
  display: block; width: auto; height: auto;
  max-width: 100%;
  object-fit: contain;        /* oran korunur, stretch olmaz */
}

/* Optik denge — logoların en/boy oranları çok farklı olduğu için
   her marka ayrı ayarlanır. Oranlar: MNG 5.26 · Yurtiçi 4.07
   · Aras 3.67 · PTT 3.27 */
.car-yurtici .shc-logo img{ max-height: 18px; }
.car-aras    .shc-logo img{ max-height: 19px; }
.car-mng     .shc-logo img{ max-height: 16px; }
.car-ptt     .shc-logo img{ max-height: 20px; }

/* Logo yoksa mevcut fallback (kamyon ikonu + baş harf) çalışmaya devam eder */
.shc-logo .shc-logo-ic + b{ margin-top: 1px; }

@media (max-width: 560px){
  /* Mobilde kutu kart yüksekliğini uzatmasın */
  .shc-logo{ width: 88px; height: 40px; flex: 0 0 88px; }
  .car-yurtici .shc-logo img{ max-height: 16px; }
  .car-aras    .shc-logo img{ max-height: 17px; }
  .car-mng     .shc-logo img{ max-height: 14px; }
  .car-ptt     .shc-logo img{ max-height: 18px; }
}

/* ==========================================================================
   Logo kutusu genişletmesi
   Değiştirilen seçiciler: .shc-logo · .shc-logo img · .car-* .shc-logo img
   Kart yapısı, marka şeridi, durum rozeti ve tablolar etkilenmez.
   ========================================================================== */
.shc-logo{
  width: 120px; height: 45px; flex: 0 0 120px;
  padding: 3px; box-sizing: border-box;
}
.shc-logo img{
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;          /* oran korunur, stretch olmaz */
}

/* Kutu genişlediği için logolar biraz büyütüldü; optik denge korunuyor.
   Oranlar: MNG 5.26 · Yurtiçi 4.07 · Aras 3.67 · PTT 3.27
   Kutu iç genişliği 114px — hiçbir logo bu sınırı aşmıyor. */
.car-yurtici .shc-logo img{ max-height: 20px; }   /* ~81px genişlik */
.car-aras    .shc-logo img{ max-height: 21px; }   /* ~77px */
.car-mng     .shc-logo img{ max-height: 18px; }   /* ~95px */
.car-ptt     .shc-logo img{ max-height: 22px; }   /* ~72px */

@media (max-width: 560px){
  /* Mobilde daha kompakt; kart yüksekliğini uzatmaz */
  .shc-logo{ width: 100px; height: 42px; flex: 0 0 100px; padding: 3px; }
  .car-yurtici .shc-logo img{ max-height: 17px; }  /* ~69px */
  .car-aras    .shc-logo img{ max-height: 18px; }  /* ~66px */
  .car-mng     .shc-logo img{ max-height: 16px; }  /* ~84px */
  .car-ptt     .shc-logo img{ max-height: 19px; }  /* ~62px */
}
