/* ==========================================================================
   Soul Market – mobil / dar ekran düzeni
   Aynı bileşenler dikey akışta yeniden yerleşir. Kartlar ve sanatlı paneller
   referanstaki oranlarını korur (zoom ile ölçeklenir).
   ========================================================================== */
.is-mobile .page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

/* Üst bar */
.is-mobile .hdr { position: relative; display: grid; grid-template-columns: auto 1fr auto auto auto; grid-template-areas: 'logo . wallet cart user' 'search search search country country'; align-items: center; column-gap: 10px; row-gap: 10px; }
.is-mobile .logo { grid-area: logo; }
.is-mobile .logo img { width: 124px; height: 49px; }
.is-mobile .search { position: relative; left: auto; top: auto; grid-area: search; width: 100%; height: 44px; }
.is-mobile .wallet { position: relative; left: auto; top: auto; grid-area: wallet; width: auto; height: 40px; display: flex; align-items: center; padding-right: 3px; }
.is-mobile .wallet-main { position: relative; width: auto; height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 6px 0 2px; }
.is-mobile .wallet-gem { position: static; width: 38px; height: 38px; }
.is-mobile .wallet-amt { position: static; font-size: 18px; }
.is-mobile .wallet-plus { position: static; width: 30px; height: 30px; }
.is-mobile .wallet-plus svg { width: 16px; height: 16px; }
.is-mobile .cart-btn { position: relative; left: auto; top: auto; grid-area: cart; width: 38px; height: 38px; }
.is-mobile .cart-btn > svg { width: 30px; height: 30px; }
.is-mobile .badge { left: 20px; top: -6px; }
.is-mobile .user { position: relative; left: auto; top: auto; grid-area: user; justify-self: end; }
.is-mobile .country { position: relative; left: auto; top: auto; grid-area: country; justify-self: end; }
.is-mobile .country-btn { height: 44px; padding: 0 10px; border-radius: 22px; }
.is-mobile .cc-name { display: none; }
.is-mobile .country-menu { right: 0; top: 52px; }
.is-mobile .avatar { width: 40px; height: 42px; }
.is-mobile .chev { display: none; }
.is-mobile .user-btn { gap: 0; }
.is-mobile .user-menu { top: 50px; right: 0; }

/* Kategoriler: yatay kaydırılabilir şerit */
.is-mobile .side { display: contents; }
.is-mobile .cats { order: 2; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -12px; padding-left: 12px; padding-right: 12px; scrollbar-width: none; }
.is-mobile .cats::-webkit-scrollbar { display: none; }
.is-mobile .cat { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 8px; border-radius: 22px; border: 1px solid rgba(150, 120, 210, .35); background: rgba(16, 10, 30, .85); white-space: nowrap; }
.is-mobile .cat-ico { width: 28px; height: 28px; }
.is-mobile .cat-ico-svg svg { width: 21px; height: 21px; }
.is-mobile .cat-name { font-size: 14.5px; }
.is-mobile .cat.is-active { background: linear-gradient(180deg, #6d36d0, #4a1e9c); border-color: rgba(225, 200, 255, .75); box-shadow: 0 0 12px rgba(150, 80, 240, .55); }

/* Ana içerik */
.is-mobile .main { order: 3; display: flex; flex-direction: column; }
.is-mobile .hero { width: 100%; height: auto; aspect-ratio: 1090 / 274; min-height: 210px; background-size: cover; background-position: 72% center; border-radius: 10px; overflow: hidden; }
.is-mobile .hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 5, 19, .92) 0%, rgba(7, 5, 19, .7) 48%, transparent 80%); }
.is-mobile .hero h1 { left: 16px; top: 18px; font-size: clamp(26px, 6.4vw, 46px); line-height: 1.02; transform: scaleX(.86); }
.is-mobile .hero p { left: 16px; top: auto; bottom: 64px; right: 40%; font-size: 14px; line-height: 18px; white-space: normal; }
.is-mobile .hero .btn-shop { left: 12px; top: auto; bottom: 10px; width: 180px; height: 50px; font-size: 15.5px; }

.is-mobile .sec-head { margin-top: 18px; height: 36px; }
.is-mobile .crown { width: 28px; height: 26px; top: 3px; left: 0; }
.is-mobile .sec-head h2 { left: 38px; top: 0; font-size: 25px; line-height: 32px; }
.is-mobile .sec-line { display: none; }
.is-mobile .see-all { right: 0; top: 8px; font-size: 14px; }
.is-mobile.view-list .sec-head { height: 70px; }
.is-mobile.view-list .back { left: 0; top: 6px; }
.is-mobile.view-list .sec-head h2 { left: 0; top: 30px; font-size: 24px; max-width: 62vw; overflow: hidden; text-overflow: ellipsis; }
.is-mobile.view-list .sec-count { left: auto; right: 0; top: 46px; }
.is-mobile.view-list .sort { right: 0; top: 0; }
.is-mobile .sort select { height: 32px; font-size: 13px; }

.is-mobile .grid,
.is-mobile .grid.is-home { grid-template-columns: repeat(var(--cols, 2), calc(256px * var(--cz, .7))); grid-template-rows: none; grid-auto-rows: auto; column-gap: 10px; row-gap: 10px; margin: 14px 0 0; }
.is-mobile .card { zoom: var(--cz, .7); height: 228px; background-image: url('../assets/img/card-frame-1.webp'); }
.is-mobile .card .c-art { bottom: 96px; }
.is-mobile .card .c-art .gc { font-size: 13.5px; }
.is-mobile .card:hover { transform: none; }

/* Sağ paneller ve özel teklif: altta, sığdıkça yan yana */
.is-mobile .rail { order: 4; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.is-mobile .rail .art-panel { position: relative; left: auto; top: auto; flex: none; }
.is-mobile .offer { position: relative; left: auto; top: auto; order: 5; align-self: center; }
@media (max-width: 300px) {
  .is-mobile .rail .art-panel, .is-mobile .offer { zoom: .9; }
}

/* Çok dar telefonlar (≤ 420 px): üst bar sığsın */
@media (max-width: 420px) {
  .is-mobile .hdr { grid-template-columns: auto minmax(0, 1fr) auto auto auto; column-gap: 6px; }
  .is-mobile .logo img { width: 96px; height: 38px; }
  .is-mobile .wallet { height: 36px; }
  .is-mobile .wallet-main { height: 36px; gap: 3px; padding-right: 4px; }
  .is-mobile .wallet-gem { width: 32px; height: 32px; }
  .is-mobile .wallet-amt { font-size: 16px; }
  .is-mobile .wallet-plus { width: 26px; height: 26px; }
  .is-mobile .wallet-plus svg { width: 14px; height: 14px; }
  .is-mobile .cart-btn { width: 34px; height: 34px; }
  .is-mobile .cart-btn > svg { width: 27px; height: 27px; }
  .is-mobile .avatar { width: 36px; height: 38px; }
  .is-mobile .hero { min-height: 190px; }
  .is-mobile .hero p { right: 30%; bottom: 62px; font-size: 13px; }
}
.is-mobile .avatar.is-round { height: auto; }
