/* =============================================================
   OCAK KITCHEN · takeaway.css
   Düzen kurgusu:
     · asimetrik bölünmüş kapak (koyu panel + taşan yemek fotoğrafı)
     · solda dikey kategori rayı (yatay fotoğraf şeridi DEĞİL)
     · menü: hairline ayraçlı liste satırları + öne çıkan vitrin kartları
     · sepet: fiş (adisyon) metaforu — zikzak kenar, kesikli ayraç, mono rakam
   ============================================================= */

/* --- 1. Token'lar --------------------------------------------- */
:root {
  --tw-ink:        #14171C;
  --tw-ink-2:      #5B6572;
  --tw-ink-3:      #697382;
  --tw-line:       #E8EBEF;
  --tw-line-soft:  #F1F4F7;
  --tw-bg:         #F5F6F8;
  --tw-surface:    #FFFFFF;

  --tw-panel:      #16191F;
  --tw-panel-2:    #1E222A;

  --tw-brand:       #C24A0D;
  --tw-brand-dark:  #A83E0A;
  --tw-brand-soft:  #FEF0E7;
  --tw-brand-vivid: #F06A25;

  --tw-success:     #12A06A;
  --tw-success-soft:#E7F6F0;
  --tw-warn:        #9A5B08;
  --tw-warn-soft:   #FEF4E6;

  --tw-r-sm: 9px;
  --tw-r:    13px;
  --tw-r-lg: 18px;
  --tw-r-pill: 999px;

  --tw-sh-1: 0 1px 2px rgba(20,23,28,.05), 0 2px 6px rgba(20,23,28,.04);
  --tw-sh-2: 0 8px 26px rgba(20,23,28,.09);
  --tw-sh-3: 0 24px 60px rgba(20,23,28,.20);

  --tw-header-h: 64px;
  --tw-rail-w: 188px;
  --tw-side-w: 340px;

  --tw-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* --- 2. Tipografi --------------------------------------------- */
body.tw {
  --rs-focus: #14171C;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--tw-bg);
  color: var(--tw-ink);
  font-size: 15px;
  line-height: 1.55;
}

.tw h1, .tw h2, .tw h3, .tw h4 { letter-spacing: -.028em; font-weight: 700; line-height: 1.14; }
.tw h1, .tw h2 { text-wrap: balance; }
.tw h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.04em; }
.tw h2 { font-size: clamp(1.3rem, 2.1vw, 1.65rem); }
.tw h3 { font-size: 1.02rem; }

.tw-eyebrow {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--tw-brand);
}
.tw-muted { color: var(--tw-ink-2); }
.tw-small { font-size: .82rem; }
.tw-sep { color: var(--tw-line); }
.tw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tw-success); flex: none; }

/* --- 3. Butonlar ---------------------------------------------- */
.tw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--tw-r-sm);
  font-size: .92rem; font-weight: 620; white-space: nowrap; cursor: pointer;
  transition-property: background-color, border-color, color, transform;
  transition-duration: .16s; transition-timing-function: ease;
}
.tw-btn:active:not(:disabled) { transform: scale(.96); }
.tw-btn:disabled, .tw-btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.tw-btn--primary { background: var(--tw-brand); color: #fff; }
.tw-btn--primary:hover:not(:disabled) { background: var(--tw-brand-dark); color: #fff; }
.tw-btn--dark { background: var(--tw-ink); color: #fff; }
.tw-btn--dark:hover:not(:disabled) { background: #000; color: #fff; }
.tw-btn--light { background: #fff; color: var(--tw-ink); }
.tw-btn--light:hover { background: #F1F4F7; color: var(--tw-ink); }
.tw-btn--ghost { background: var(--tw-surface); color: var(--tw-ink); border-color: var(--tw-line); }
.tw-btn--ghost:hover { border-color: #CFD6DE; }
.tw-btn--soft { background: var(--tw-brand-soft); color: var(--tw-brand-dark); }
.tw-btn--soft:hover { background: var(--tw-brand); color: #fff; }
.tw-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.tw-btn--outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }
.tw-btn--block { width: 100%; }
.tw-btn--lg { height: 52px; padding: 0 26px; font-size: .97rem; }
.tw-btn--sm { height: 38px; padding: 0 14px; font-size: .85rem; }

.tw-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  border: 1px solid var(--tw-line); border-radius: var(--tw-r-sm);
  background: var(--tw-surface); cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.tw-icon-btn:hover { border-color: #CFD6DE; }
.tw-icon-btn:active { transform: scale(.96); }
.tw-icon-btn svg { width: 19px; height: 19px; }

/* --- 4. Etiketler --------------------------------------------- */
.tw-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 6px;
  font-size: .69rem; font-weight: 700; letter-spacing: .02em;
  background: var(--tw-brand); color: #fff;
}
.tw-badge--soft   { background: var(--tw-brand-soft); color: var(--tw-brand-dark); }
.tw-badge--green  { background: var(--tw-success-soft); color: #0B7F53; }
.tw-badge--neutral{ background: #F1F4F7; color: var(--tw-ink-2); }
.tw-badge--onDark { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(4px); }

.tw-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px; border-radius: var(--tw-r-pill);
  background: #F1F4F7; font-size: .83rem; color: var(--tw-ink);
}
.tw-pill svg { width: 15px; height: 15px; color: var(--tw-ink-2); }

/* --- 5. Header ------------------------------------------------- */
.tw-header {
  position: sticky; top: 0; z-index: 1040;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--tw-line);
}
.tw-header__inner { height: var(--tw-header-h); display: flex; align-items: center; gap: 14px; }

.tw-logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.tw-logo__mark {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  background: linear-gradient(145deg, #FF8A4C, var(--tw-brand-vivid));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.02rem; letter-spacing: -.04em;
  box-shadow: 0 5px 14px rgba(240,106,37,.28);
}
.tw-logo__text { line-height: 1.1; min-width: 0; }
.tw-logo__name { font-weight: 730; font-size: 1.01rem; letter-spacing: -.03em; white-space: nowrap; }
.tw-logo__sub {
  font-size: .65rem; color: var(--tw-ink-3); letter-spacing: .1em;
  text-transform: uppercase; white-space: nowrap;
}

/* Header içi arama: ikon arkasına gizlenmez, hep görünür */
.tw-search { position: relative; flex: 1 1 320px; max-width: 420px; margin-left: 10px; }
.tw-search input {
  width: 100%; height: 42px; padding: 0 14px 0 40px;
  border: 1px solid var(--tw-line); border-radius: var(--tw-r-sm);
  background: #F7F8FA; font-family: inherit; font-size: .92rem; color: var(--tw-ink);
  transition: border-color .16s ease, background .16s ease;
}
.tw-search input::placeholder { color: var(--tw-ink-3); }
.tw-search input:focus { outline: 0; border-color: var(--tw-ink); background: #fff; }
.tw-search svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--tw-ink-3); pointer-events: none;
}

.tw-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.tw-status { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--tw-ink-2); }
.tw-status b { color: var(--tw-ink); font-weight: 620; }

.tw-cart-btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 8px 0 14px;
  border: 0; border-radius: var(--tw-r-sm);
  background: var(--tw-ink); color: #fff;
  font-size: .88rem; font-weight: 620; cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background-color .16s ease, transform .16s ease;
}
.tw-cart-btn:hover { background: #000; }
.tw-cart-btn:active { transform: scale(.96); }
.tw-cart-btn svg { width: 18px; height: 18px; }
.tw-cart-btn__count {
  min-width: 25px; height: 25px; padding: 0 7px; border-radius: 6px;
  background: var(--tw-brand); display: inline-grid; place-items: center;
  font-size: .77rem; font-weight: 720;
}

/* --- 6. Kompakt kapak: banner + profil kartı ------------------- */
.tw-cover { position: relative; height: 188px; overflow: hidden; background: var(--tw-panel); }
.tw-cover__media { position: absolute; inset: 0; }
.tw-cover__media img { width: 100%; height: 100%; object-fit: cover; }
.tw-cover__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,23,28,.25) 0%, rgba(20,23,28,.05) 46%, rgba(20,23,28,.30) 100%);
}
.tw-cover__badge {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 16px; width: min(1320px, calc(100% - 24px));
  display: flex; justify-content: flex-end;
}

.tw-profile {
  position: relative; z-index: 2; margin-top: -52px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--tw-surface);
  border: 1px solid var(--tw-line);
  border-radius: var(--tw-r-lg);
  box-shadow: var(--tw-sh-2);
}
.tw-profile__mark {
  width: 74px; height: 74px; flex: none; border-radius: 14px; overflow: hidden;
  border: 3px solid var(--tw-surface); box-shadow: var(--tw-sh-1); margin-top: -34px;
}
.tw-profile__id { min-width: 0; }
.tw-profile__name { font-size: clamp(1.35rem, 2.4vw, 1.9rem); margin-top: 3px; }
.tw-profile__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.tw-profile__rating { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; }
.tw-profile__rating b { font-variant-numeric: tabular-nums; }
.tw-profile__rating span { color: var(--tw-ink-2); }
.tw-profile__claim { color: var(--tw-ink-2); font-size: .86rem; }
.tw-stars { display: inline-flex; gap: 2px; color: #E9A23B; }
.tw-stars svg { width: 14px; height: 14px; }

.tw-profile__chips { margin-left: auto; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.tw-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px; border-radius: var(--tw-r-sm);
  border: 1px solid var(--tw-line); background: var(--tw-surface);
  font-size: .82rem; color: var(--tw-ink); white-space: nowrap;
}
.tw-chip svg { width: 15px; height: 15px; color: var(--tw-ink-3); }
.tw-chip b { font-weight: 650; font-variant-numeric: tabular-nums; }
.tw-chip--brand {
  border-color: transparent; background: var(--tw-brand); color: #fff; cursor: pointer;
  font-weight: 620; transition: background .16s ease, transform .16s ease;
}
.tw-chip--brand svg { color: #fff; }
.tw-chip--brand:hover { background: var(--tw-brand-dark); }
.tw-chip--brand:active { transform: scale(.96); }
.tw-chip--soft { background: var(--tw-brand-soft); border-color: transparent; color: var(--tw-brand-dark); }

.tw-profile__note {
  flex: 1 0 100%; margin: 0; padding-top: 12px; border-top: 1px dashed var(--tw-line);
  font-size: .82rem; color: var(--tw-ink-2);
}

/* --- 7. İskelet: ray + menü + fiş ------------------------------ */
.tw-shell {
  display: grid;
  grid-template-columns: var(--tw-rail-w) minmax(0, 1fr) var(--tw-side-w);
  gap: 24px;
  align-items: start;
  padding: 24px 0 60px;
}
.tw-shell__main { min-width: 0; }
.tw-shell__side { position: sticky; top: calc(var(--tw-header-h) + 22px); min-width: 0; }

/* Dikey kategori rayı */
.tw-rail { position: sticky; top: calc(var(--tw-header-h) + 22px); }
.tw-rail__title {
  font-size: .66rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--tw-ink-3);
  padding: 0 12px 10px;
}
.tw-rail__item {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px;
  border: 0; background: none; border-radius: var(--tw-r-sm);
  font-size: .92rem; font-weight: 560; color: var(--tw-ink-2);
  text-align: left; cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.tw-rail__item:hover { background: #ECEFF3; color: var(--tw-ink); }
.tw-rail__item::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0;
  background: var(--tw-brand); transition: transform .2s ease;
}
.tw-rail__item.is-active { color: var(--tw-ink); font-weight: 700; background: #ECEFF3; }
.tw-rail__item.is-active::before { transform: translateY(-50%) scaleY(1); }
.tw-rail__count {
  margin-left: auto; font-size: .76rem; color: var(--tw-ink-3);
  font-variant-numeric: tabular-nums;
}
.tw-rail__foot { margin-top: 18px; padding: 14px 12px 0; border-top: 1px solid var(--tw-line); }

/* --- 8. Menü bölümü -------------------------------------------- */
.tw-section { padding-top: 28px; scroll-margin-top: 92px; }
.tw-section:first-child { padding-top: 0; }
.tw-section__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.tw-section__head h2 { white-space: nowrap; }
.tw-section__rule { flex: 1; height: 1px; background: var(--tw-line); }
.tw-section__count {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tw-ink-3); white-space: nowrap;
}

/* --- 9. Vitrin kartı (Popüler) --------------------------------- */
.tw-spots { gap: 14px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.tw-spot-wrap { position: relative; flex: 0 0 176px; scroll-snap-align: start; }
.tw-spot {
  position: relative; display: block; width: 100%;
  aspect-ratio: 4 / 5; border: 0; padding: 0;
  border-radius: var(--tw-r); overflow: hidden;
  background: var(--tw-panel); cursor: pointer; text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tw-spot-wrap:hover .tw-spot { transform: translateY(-3px); box-shadow: var(--tw-sh-2); }
.tw-spot-wrap:hover .rs-media > img { transform: scale(1.06); }
.tw-spot__media { position: absolute; inset: 0; }
.tw-spot__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,14,18,.05) 34%, rgba(12,14,18,.86) 100%);
}
.tw-spot__badges { position: absolute; left: 11px; top: 11px; display: flex; gap: 6px; }
.tw-spot__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; color: #fff; }
.tw-spot__title { display: block; font-size: .94rem; font-weight: 680; letter-spacing: -.02em; }
.tw-spot__price {
  display: block; margin-top: 4px; font-size: .95rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tw-spot__price s { color: rgba(255,255,255,.55); font-weight: 500; margin-left: 6px; font-size: .82rem; }

/* --- 10. Liste satırı ------------------------------------------ */
.tw-list {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--tw-surface);
  border: 1px solid var(--tw-line);
  border-radius: var(--tw-r-lg);
  overflow: hidden;
}
.tw-row-wrap { position: relative; display: flex; border-top: 1px solid var(--tw-line-soft); }
.tw-row-wrap:nth-child(odd) { border-right: 1px solid var(--tw-line-soft); }
.tw-row-wrap:nth-child(1), .tw-row-wrap:nth-child(2) { border-top: 0; }
.tw-row-wrap:hover { background: #FAFBFC; }

.tw-row {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 13px 60px 13px 14px;
  border: 0; background: none; text-align: left; cursor: pointer;
}
.tw-row__media { width: 74px; height: 74px; flex: none; border-radius: 10px; }
.tw-row-wrap:hover .rs-media > img { transform: scale(1.05); }
.tw-row__main { flex: 1; min-width: 0; }
.tw-row__title { display: block; font-size: .99rem; font-weight: 660; letter-spacing: -.014em; }
.tw-row__desc {
  display: -webkit-box; margin-top: 4px; font-size: .845rem; color: var(--tw-ink-2);
  text-wrap: pretty; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tw-row__tags { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.tw-row__price {
  flex: none; text-align: right; font-weight: 720; font-size: 1.01rem;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.tw-row__price s { display: block; font-size: .8rem; color: var(--tw-ink-3); font-weight: 500; }

/* Ekle butonu: satırın sağ kenarında, gerçek buton */
.tw-add {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--tw-line); background: var(--tw-surface);
  color: var(--tw-brand); display: grid; place-items: center; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.tw-add:hover { background: var(--tw-brand); border-color: var(--tw-brand); color: #fff; }
.tw-add:active { transform: translateY(-50%) scale(.94); }
.tw-add svg { width: 18px; height: 18px; }

.tw-spot-wrap .tw-add { top: 11px; right: 11px; transform: none; border-color: transparent; box-shadow: var(--tw-sh-1); }
.tw-spot-wrap .tw-add:active { transform: scale(.94); }

/* --- 11. Kampanya kartı ---------------------------------------- */
.tw-promo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tw-promo {
  position: relative; display: flex; min-height: 158px;
  border-radius: var(--tw-r); overflow: hidden;
  background: var(--tw-panel); color: #fff; border: 0;
  text-align: left; cursor: pointer; width: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tw-promo:hover { transform: translateY(-3px); box-shadow: var(--tw-sh-2); }
.tw-promo__media { position: absolute; inset: 0; }
.tw-promo__media img { width: 100%; height: 100%; object-fit: cover; }
.tw-promo__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,16,20,.95) 8%, rgba(14,16,20,.74) 52%, rgba(14,16,20,.12) 100%);
}
.tw-promo__body { position: relative; padding: 18px 20px; display: flex; flex-direction: column; max-width: 72%; }
.tw-promo__title { font-size: 1.1rem; font-weight: 700; letter-spacing: -.025em; margin-top: 9px; }
.tw-promo__desc { font-size: .84rem; color: rgba(255,255,255,.76); margin-top: 5px; text-wrap: pretty; }
.tw-promo__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 10px; }
.tw-promo__price { font-size: 1.14rem; font-weight: 760; font-variant-numeric: tabular-nums; }
.tw-promo__old { font-size: .84rem; color: rgba(255,255,255,.55); text-decoration: line-through; }
.tw-promo__cta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 650; }
.tw-promo__cta svg { width: 15px; height: 15px; }

/* --- 12. Sepet: fiş (adisyon) ---------------------------------- */
.tw-receipt {
  position: relative;
  background: var(--tw-surface);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 10px 34px rgba(20,23,28,.10), 0 1px 0 rgba(20,23,28,.05);
  display: flex; flex-direction: column;
  max-height: calc(100vh - var(--tw-header-h) - 58px);
}
/* alt kenarda yırtık fiş görünümü */
.tw-receipt::after {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 9px;
  background:
    linear-gradient(135deg, var(--tw-surface) 34%, transparent 34%) 0 0 / 18px 18px repeat-x,
    linear-gradient(-135deg, var(--tw-surface) 34%, transparent 34%) 0 0 / 18px 18px repeat-x;
  filter: drop-shadow(0 4px 6px rgba(20,23,28,.06));
}

.tw-receipt__head {
  padding: 20px 20px 14px; text-align: center;
  border-bottom: 1px dashed #D7DCE3;
}
.tw-receipt__brand {
  font-family: var(--tw-mono);
  font-size: .82rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
}
.tw-receipt__sub {
  font-family: var(--tw-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--tw-ink-3); margin-top: 6px;
}
.tw-receipt__meta {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 12px;
  font-family: var(--tw-mono); font-size: .7rem; color: var(--tw-ink-3);
  font-variant-numeric: tabular-nums;
}
.tw-receipt__body { flex: 1; overflow-y: auto; padding: 4px 20px; }
.tw-receipt__foot { padding: 14px 20px 20px; border-top: 1px dashed #D7DCE3; }

.tw-receipt__barcode {
  height: 26px; margin-top: 16px; opacity: .8;
  background: repeating-linear-gradient(90deg,
    var(--tw-ink) 0 2px, transparent 2px 4px,
    var(--tw-ink) 4px 5px, transparent 5px 9px,
    var(--tw-ink) 9px 12px, transparent 12px 14px);
}
.tw-receipt__thanks {
  font-family: var(--tw-mono); font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--tw-ink-3); text-align: center; margin-top: 10px;
}

/* Teslimat / gel-al seçimi */
.tw-mode {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--tw-line); border-radius: var(--tw-r-sm);
  overflow: hidden; margin: 14px 0 6px;
}
.tw-mode button {
  height: 38px; border: 0; background: var(--tw-surface);
  font-size: .85rem; font-weight: 620; color: var(--tw-ink-2); cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.tw-mode button + button { border-left: 1px solid var(--tw-line); }
.tw-mode button.is-active { background: var(--tw-ink); color: #fff; }

/* Fiş satırı */
.tw-line { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px dashed #E3E7EC; }
.tw-line:last-of-type { border-bottom: 0; }
.tw-line__media { width: 46px; height: 46px; border-radius: 7px; flex: none; }
.tw-line__main { flex: 1; min-width: 0; }
.tw-line__title { font-size: .91rem; font-weight: 650; }
.tw-line__opts { font-size: .76rem; color: var(--tw-ink-2); margin-top: 2px; }
.tw-line__note { font-size: .76rem; color: var(--tw-ink-3); font-style: italic; margin-top: 2px; }
.tw-line__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; gap: 8px; }
.tw-line__price { font-family: var(--tw-mono); font-weight: 700; font-size: .89rem; font-variant-numeric: tabular-nums; }
.tw-line__remove {
  border: 0; background: none; padding: 5px; color: var(--tw-ink-3); cursor: pointer;
  border-radius: 6px; transition: color .15s ease, background .15s ease;
}
.tw-line__remove:hover { color: #C0392B; background: #FDEEEC; }
.tw-line__remove svg { width: 16px; height: 16px; }

/* Adet */
.tw-qty {
  display: inline-flex; align-items: center; flex: none; overflow: hidden;
  border: 1px solid var(--tw-line); border-radius: var(--tw-r-sm); background: var(--tw-surface);
}
.tw-qty button {
  width: 40px; height: 44px; border: 0; background: none;
  display: grid; place-items: center; cursor: pointer; color: var(--tw-ink);
  transition: background .14s ease;
}
.tw-qty button:hover:not(:disabled) { background: #F2F4F7; }
.tw-qty button:disabled { color: #C6CDD6; cursor: not-allowed; }
.tw-qty svg { width: 15px; height: 15px; }
.tw-qty__value {
  min-width: 30px; text-align: center; font-weight: 660; font-size: .97rem;
  font-variant-numeric: tabular-nums;
}
.tw-qty--sm button { width: 30px; height: 30px; }
.tw-qty--sm .tw-qty__value { min-width: 22px; font-size: .86rem; }

/* Öneriler */
.tw-upsell { margin: 12px 0 4px; padding-top: 14px; border-top: 1px dashed #E3E7EC; }
.tw-upsell__title {
  font-family: var(--tw-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--tw-ink-3); margin-bottom: 10px;
}
.tw-upsell__row { gap: 8px; }
.tw-upsell__item {
  flex: none; width: 88px; padding: 7px;
  border: 1px solid var(--tw-line); border-radius: 14px;
  background: var(--tw-surface); cursor: pointer; text-align: center;
  transition: border-color .16s ease, transform .16s ease;
}
.tw-upsell__item:hover { border-color: var(--tw-brand); transform: translateY(-2px); }
.tw-upsell__item:active { transform: scale(.96); }
.tw-upsell__item .rs-media { width: 100%; aspect-ratio: 1; border-radius: 7px; margin-bottom: 6px; }
.tw-upsell__name { font-size: .72rem; line-height: 1.25; display: block; }
.tw-upsell__price {
  font-size: .72rem; font-weight: 700; color: var(--tw-brand); display: block; margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

/* Kupon */
.tw-coupon { display: flex; gap: 8px; margin: 12px 0 4px; }
.tw-coupon input {
  flex: 1; min-width: 0; height: 42px; padding: 0 13px;
  border: 1px dashed #CBD3DC; border-radius: var(--tw-r-sm);
  background: var(--tw-surface); font-family: var(--tw-mono); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.tw-coupon input:focus { outline: 0; border-color: var(--tw-ink); border-style: solid; }
.tw-coupon input::placeholder { text-transform: none; letter-spacing: 0; color: var(--tw-ink-3); font-family: inherit; }

/* Tutarlar */
.tw-summary { font-variant-numeric: tabular-nums; }
.tw-summary--boxed {
  background: var(--tw-surface); border: 1px solid var(--tw-line);
  border-radius: var(--tw-r); padding: 15px 16px;
}
.tw-summary__row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  font-size: .88rem; padding: 5px 0; color: var(--tw-ink-2);
}
.tw-summary__row > span:first-child { flex: none; white-space: nowrap; }
.tw-summary__row span:last-child { color: var(--tw-ink); font-weight: 620; text-align: right; font-family: var(--tw-mono); }
.tw-summary__row--discount span:last-child { color: var(--tw-success); }
.tw-summary__total {
  margin-top: 10px; padding-top: 12px;
  border-top: 2px solid var(--tw-ink);
  display: flex; align-items: baseline; justify-content: space-between;
}
.tw-summary__total span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.tw-summary__total b { font-size: 1.32rem; letter-spacing: -.03em; font-family: var(--tw-mono); }

.tw-alert {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 11px 13px; border-radius: var(--tw-r-sm);
  background: var(--tw-warn-soft); color: var(--tw-warn);
  font-size: .82rem; margin-bottom: 10px;
}
.tw-alert svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.tw-alert--info { background: #EEF4FF; color: #29457D; }

.tw-empty { text-align: center; padding: 30px 12px; }
.tw-empty__mark {
  width: 54px; height: 54px; margin: 0 auto 13px; border-radius: 15px;
  background: #F1F4F7; display: grid; place-items: center; color: var(--tw-ink-3);
}
.tw-empty__mark svg { width: 23px; height: 23px; }
.tw-empty h3 { font-size: .99rem; }
.tw-empty p { color: var(--tw-ink-2); font-size: .86rem; margin-top: 5px; }

/* --- 13. Ürün detay modalı -------------------------------------- */
.tw-modal .modal-content { border: 0; border-radius: var(--tw-r-lg); overflow: hidden; box-shadow: var(--tw-sh-3); }
.tw-modal__media { position: relative; aspect-ratio: 16/9; flex: none; }
.tw-modal__close {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--tw-ink);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.tw-modal__close svg { width: 16px; height: 16px; }
.tw-modal__badges { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; }
.tw-modal__body { padding: 20px 22px 6px; overflow-y: auto; }
.tw-modal__title { font-size: 1.42rem; font-weight: 730; letter-spacing: -.032em; }
.tw-modal__desc { color: var(--tw-ink-2); margin-top: 6px; text-wrap: pretty; }
.tw-modal__price {
  margin-top: 12px; font-size: 1.28rem; font-weight: 760; letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.tw-modal__price small { font-size: .84rem; color: var(--tw-ink-3); text-decoration: line-through; font-weight: 500; margin-left: 8px; }
.tw-modal__foot {
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--tw-line); background: var(--tw-surface);
  display: flex; align-items: center; gap: 12px;
}
.tw-modal__foot .tw-btn { min-width: 0; }

.tw-optgroup { border-top: 1px solid var(--tw-line-soft); padding: 18px 0; }
.tw-optgroup:first-of-type { border-top: 0; }
.tw-optgroup__head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 10px; }
.tw-optgroup__title { font-size: .95rem; font-weight: 680; }
.tw-optgroup__meta { font-size: .76rem; color: var(--tw-ink-3); white-space: nowrap; }
.tw-optgroup__hint { font-size: .78rem; color: var(--tw-ink-3); margin: -6px 0 10px; }
.tw-optgroup__req {
  font-size: .67rem; font-weight: 720; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tw-brand); background: var(--tw-brand-soft); padding: 2px 7px; border-radius: 5px;
}

.tw-option {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; margin-bottom: 7px;
  border: 1px solid var(--tw-line); border-radius: var(--tw-r-sm); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.tw-option:hover { border-color: #CFD6DE; }
.tw-option:last-child { margin-bottom: 0; }
.tw-option input { position: absolute; opacity: 0; pointer-events: none; }
.tw-option__box {
  width: 20px; height: 20px; flex: none;
  border: 1.5px solid #C6CDD6; border-radius: 50%;
  display: grid; place-items: center;
  transition: border-color .15s ease, background .15s ease;
}
.tw-option__box--check { border-radius: 6px; }
.tw-option__box::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; transform: scale(0); transition: transform .15s ease;
}
.tw-option__box--check::after {
  width: 11px; height: 6px; border-radius: 0; background: none;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); margin-top: -2px;
}
.tw-option__label { flex: 1; font-size: .92rem; }
.tw-option__price { font-size: .85rem; font-weight: 620; color: var(--tw-ink-2); font-variant-numeric: tabular-nums; }
.tw-option:has(input:checked) { border-color: var(--tw-brand); background: #FFF8F4; }
.tw-option:has(input:checked) .tw-option__box { border-color: var(--tw-brand); background: var(--tw-brand); }
.tw-option:has(input:checked) .tw-option__box::after { transform: scale(1); }
.tw-option:has(input:checked) .tw-option__box--check::after { transform: rotate(-45deg) scale(1); }

.tw-note {
  width: 100%; min-height: 76px; resize: vertical; padding: 12px 14px;
  border: 1px solid var(--tw-line); border-radius: var(--tw-r-sm);
  font-size: .92rem; font-family: inherit; color: var(--tw-ink); background: var(--tw-surface);
}
.tw-note::placeholder { color: var(--tw-ink-3); }
.tw-note:focus { outline: 0; border-color: var(--tw-ink); }

/* --- 14. Mobil sepet çubuğu + çekmece --------------------------- */
.tw-mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--tw-line);
  transform: translateY(130%);
  transition: transform .26s cubic-bezier(.2,.7,.3,1);
  display: none;
}
.tw-mobilebar.is-visible { transform: none; }
.tw-mobilebar__btn {
  width: 100%; height: 52px; border: 0; border-radius: var(--tw-r-sm);
  background: var(--tw-brand); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; font-weight: 650; font-size: .95rem;
  font-variant-numeric: tabular-nums;
  transition: background-color .16s ease, transform .16s ease;
}
.tw-mobilebar__btn:active { transform: scale(.98); }
.tw-mobilebar__left { display: flex; align-items: center; gap: 10px; }
.tw-mobilebar__count {
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 7px;
  background: rgba(255,255,255,.24); display: inline-grid; place-items: center; font-size: .8rem;
}
.tw-cart.offcanvas { width: 100%; max-width: 400px; border: 0; background: var(--tw-bg); }
.tw-cart .tw-receipt { max-height: none; height: 100%; border-radius: 0; box-shadow: none; }
.tw-cart .tw-receipt::after { display: none; }

/* --- 15. Alt bilgi ---------------------------------------------- */
.tw-footer { border-top: 1px solid var(--tw-line); background: var(--tw-surface); padding: 22px 0; }
.tw-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  font-size: .83rem; color: var(--tw-ink-2);
}
.tw-footer__inner a { color: var(--tw-ink-2); }
.tw-footer__inner a:hover { color: var(--tw-ink); }

/* --- 16. Checkout ---------------------------------------------- */
.tw-flow { padding: 26px 0 60px; }
.tw-flow__head { margin-bottom: 20px; }
.tw-flow__head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.tw-flow__head p { color: var(--tw-ink-2); margin-top: 4px; font-size: .9rem; }

/* Adım çubuğu */
.tw-stepbar {
  display: flex; align-items: flex-start;
  background: var(--tw-surface); border: 1px solid var(--tw-line);
  border-radius: var(--tw-r); padding: 14px 10px; margin-bottom: 18px;
}
.tw-stepbar__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px;
  position: relative; border: 0; background: none; padding: 0 6px; cursor: default;
  color: var(--tw-ink-3); font-size: .82rem; text-align: center;
}
.tw-stepbar__item::before {
  content: ''; position: absolute; top: 13px; left: -50%; right: 50%;
  height: 2px; background: var(--tw-line);
}
.tw-stepbar__item:first-child::before { display: none; }
.tw-stepbar__num {
  width: 28px; height: 28px; border-radius: 50%; flex: none; position: relative; z-index: 1;
  border: 2px solid var(--tw-line); background: var(--tw-surface);
  display: grid; place-items: center; font-size: .8rem; font-weight: 720;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.tw-stepbar__item.is-current { color: var(--tw-ink); font-weight: 650; }
.tw-stepbar__item.is-current .tw-stepbar__num { border-color: var(--tw-brand); background: var(--tw-brand); color: #fff; }
.tw-stepbar__item.is-done { color: var(--tw-ink-2); cursor: pointer; }
.tw-stepbar__item.is-done .tw-stepbar__num { border-color: var(--tw-success); background: var(--tw-success); color: #fff; }
.tw-stepbar__item.is-done::before, .tw-stepbar__item.is-current::before { background: var(--tw-success); }

/* İki kolon */
.tw-flow__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 352px;
  gap: 22px; align-items: start;
}
.tw-flow__side { position: sticky; top: calc(var(--tw-header-h) + 20px); }

.tw-panel {
  background: var(--tw-surface); border: 1px solid var(--tw-line);
  border-radius: var(--tw-r); padding: 22px; margin-bottom: 14px;
}
.tw-panel:last-child { margin-bottom: 0; }
.tw-panel__title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.tw-panel__title h2 { font-size: 1.06rem; }
.tw-panel__step {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--tw-brand-soft); color: var(--tw-brand-dark);
  display: grid; place-items: center; font-size: .78rem; font-weight: 720;
}

.tw-field { margin-bottom: 14px; }
.tw-field label { display: block; font-size: .83rem; font-weight: 620; margin-bottom: 6px; color: var(--tw-ink-2); }
.tw-input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--tw-line); border-radius: var(--tw-r-sm);
  font-size: .94rem; font-family: inherit; background: var(--tw-surface); color: var(--tw-ink);
}
textarea.tw-input { height: auto; padding: 12px 14px; min-height: 76px; resize: vertical; }
.tw-input:focus { outline: 0; border-color: var(--tw-ink); }
.tw-input::placeholder { color: var(--tw-ink-3); }
.tw-input.is-invalid { border-color: #C0392B; background: #FFF7F6; }

.tw-radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tw-radio-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border: 1px solid var(--tw-line); border-radius: var(--tw-r);
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.tw-radio-card:hover { border-color: #CFD6DE; }
.tw-radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.tw-radio-card b { font-size: .92rem; font-weight: 650; display: block; }
.tw-radio-card span { font-size: .8rem; color: var(--tw-ink-2); }
.tw-radio-card:has(input:checked) { border-color: var(--tw-brand); background: #FFF8F4; }
.tw-radio-card:has(input:checked) .tw-option__box { border-color: var(--tw-brand); background: var(--tw-brand); }
.tw-radio-card:has(input:checked) .tw-option__box::after { transform: scale(1); }

/* Fiş satırı (statik) */
.tw-rline { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px dashed #E3E7EC; }
.tw-rline:last-child { border-bottom: 0; }
.tw-rline__qty {
  width: 26px; height: 26px; flex: none; border-radius: 7px;
  background: #F1F4F7; display: grid; place-items: center;
  font-size: .76rem; font-weight: 720; font-variant-numeric: tabular-nums;
}
.tw-rline__media { width: 40px; height: 40px; flex: none; border-radius: 8px; }
.tw-rline__main { flex: 1; min-width: 0; }
.tw-rline__name { font-size: .88rem; font-weight: 650; }
.tw-rline__opts { font-size: .75rem; color: var(--tw-ink-2); margin-top: 1px; }
.tw-rline__note { font-size: .75rem; color: var(--tw-ink-3); font-style: italic; }
.tw-rline__price {
  font-family: var(--tw-mono); font-size: .86rem; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* --- 17. Sipariş onayı ve takip --------------------------------- */
.tw-confirm {
  background: var(--tw-surface); border: 1px solid var(--tw-line);
  border-radius: var(--tw-r-lg); padding: 30px 26px; text-align: center; margin-bottom: 14px;
}
.tw-confirm__mark {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--tw-success-soft); color: var(--tw-success);
  display: grid; place-items: center;
  animation: tw-pop .45s cubic-bezier(.2,1.2,.4,1);
}
.tw-confirm__mark svg { width: 30px; height: 30px; }
@keyframes tw-pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.tw-confirm h1 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.tw-confirm p { color: var(--tw-ink-2); margin-top: 8px; }

.tw-orderid {
  display: inline-flex; align-items: stretch; margin-top: 16px;
  border: 1px solid var(--tw-line); border-radius: var(--tw-r-sm); overflow: hidden;
}
.tw-orderid span {
  padding: 9px 14px; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tw-ink-2); background: #F7F8FA; display: grid; place-items: center;
}
.tw-orderid b {
  padding: 9px 16px; font-family: var(--tw-mono); font-size: .98rem;
  font-variant-numeric: tabular-nums; display: grid; place-items: center;
}

.tw-eta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 16px; padding: 12px 16px; border-radius: var(--tw-r-sm);
  background: var(--tw-success-soft); color: #0B6B49; font-size: .9rem;
}
.tw-eta svg { width: 17px; height: 17px; flex: none; }
.tw-eta b { font-variant-numeric: tabular-nums; }

/* Takip adımları */
.tw-track { display: flex; }
.tw-track__step { flex: 1; position: relative; padding-top: 40px; text-align: center; }
.tw-track__step::before {
  content: ''; position: absolute; top: 13px; left: 50%; right: -50%; height: 3px;
  background: var(--tw-line); border-radius: 2px;
}
.tw-track__step:last-child::before { display: none; }
.tw-track__step::after {
  content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--tw-surface); border: 3px solid var(--tw-line);
  z-index: 1; transition: background .3s ease, border-color .3s ease;
}
.tw-track__step.is-done::after, .tw-track__step.is-current::after {
  background: var(--tw-success); border-color: var(--tw-success);
}
.tw-track__step.is-done::before { background: var(--tw-success); }
.tw-track__step.is-current::after { box-shadow: 0 0 0 5px var(--tw-success-soft); animation: tw-ping 1.8s ease-out infinite; }
@keyframes tw-ping {
  0%   { box-shadow: 0 0 0 0 rgba(18,160,106,.32); }
  70%  { box-shadow: 0 0 0 11px rgba(18,160,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(18,160,106,0); }
}
.tw-track__label { font-size: .85rem; color: var(--tw-ink-3); font-weight: 560; }
.tw-track__time { font-size: .76rem; color: var(--tw-ink-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.tw-track__step.is-done .tw-track__label,
.tw-track__step.is-current .tw-track__label { color: var(--tw-ink); font-weight: 650; }

.tw-infolist { display: grid; gap: 1px; background: var(--tw-line-soft); border-radius: var(--tw-r-sm); overflow: hidden; }
.tw-infolist__row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  background: var(--tw-surface); padding: 11px 13px; font-size: .88rem;
}
.tw-infolist__row > span:first-child { color: var(--tw-ink-2); flex: none; }
.tw-infolist__row > span:last-child { font-weight: 620; text-align: right; }

/* --- 18. Duyarlılık --------------------------------------------- */
@media (max-width: 1399.98px) {
  :root { --tw-rail-w: 168px; --tw-side-w: 318px; }
}

@media (max-width: 1199.98px) {
  .tw-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tw-shell__side { display: none; }
  .tw-mobilebar { display: block; }
  body.tw.has-cart { padding-bottom: 80px; }

  /* Ray yatay sekmelere dönüşür */
  .tw-rail {
    position: sticky; top: var(--tw-header-h); z-index: 1030;
    margin: 0 0 6px; padding: 8px 0;
    background: rgba(245,246,248,.96); backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--tw-line);
  }
  .tw-rail__title, .tw-rail__foot { display: none; }
  .tw-rail__scroll { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .tw-rail__scroll::-webkit-scrollbar { display: none; }
  .tw-rail__item {
    flex: none; width: auto; padding: 8px 14px; border-radius: var(--tw-r-pill);
    border: 1px solid var(--tw-line); background: var(--tw-surface);
  }
  .tw-rail__item::before { display: none; }
  .tw-rail__item.is-active { background: var(--tw-ink); border-color: var(--tw-ink); color: #fff; }
  .tw-rail__item.is-active .tw-rail__count { color: rgba(255,255,255,.7); }
  .tw-section { scroll-margin-top: 134px; }
}

@media (max-width: 1199.98px) {
  .tw-flow__grid { grid-template-columns: minmax(0, 1fr); }
  .tw-flow__side { position: static; }
}

@media (max-width: 991.98px) {
  .tw-list { grid-template-columns: 1fr; }
  .tw-row-wrap:nth-child(odd) { border-right: 0; }
  .tw-row-wrap:nth-child(2) { border-top: 1px solid var(--tw-line-soft); }
  .tw-profile__chips { margin-left: 0; flex: 1 0 100%; }
  .tw-promo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .tw-input, .tw-note, .tw-coupon input, .tw-search input { font-size: 16px; }

  .tw-shell { padding: 16px 0 44px; }
  .tw-cover { height: 148px; }
  .tw-profile { margin-top: -42px; padding: 14px 15px; gap: 13px; }
  .tw-profile__mark { width: 60px; height: 60px; margin-top: -28px; border-radius: 12px; }
  .tw-profile__name { font-size: 1.3rem; }
  .tw-chip { height: 31px; padding: 0 11px; font-size: .78rem; }
  .tw-section { padding-top: 22px; }

  .tw-row { gap: 13px; padding: 13px 60px 13px 13px; }
  .tw-row__media { width: 70px; height: 70px; }
  .tw-row__desc { font-size: .82rem; }
  .tw-add { width: 34px; height: 34px; right: 12px; border-radius: 10px; }
  .tw-spot-wrap { flex: 0 0 168px; }

  .tw-promo { min-height: 144px; }
  .tw-promo__body { max-width: 76%; padding: 16px 17px; }

  .tw-modal .modal-content { border-radius: 18px 18px 0 0; }
  .tw-modal .modal-dialog { margin: 0; align-items: flex-end; min-height: 100%; }
  .tw-modal__media { aspect-ratio: 16/10; }
  .tw-modal__body { padding: 18px 18px 4px; }
  .tw-modal__foot { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); gap: 9px; }
  .tw-modal__foot .tw-btn--lg { font-size: .9rem; padding: 0 14px; }
  .tw-modal__title { font-size: 1.2rem; }
  .tw-qty button { width: 38px; }

  .tw-radio-grid { grid-template-columns: 1fr; }
  .tw-panel { padding: 16px; }
  .tw-stepbar { padding: 12px 4px; }
  .tw-stepbar__item { font-size: 0; gap: 0; }
  .tw-stepbar__num { font-size: .8rem; }
  .tw-confirm { padding: 24px 18px; }
  .tw-rline__media { display: none; }

  .tw-track { flex-direction: column; gap: 2px; align-items: flex-start; }
  .tw-track__step { padding: 0 0 22px 32px; text-align: left; width: 100%; }
  .tw-track__step::before { top: 22px; bottom: -4px; left: 8px; right: auto; width: 3px; height: auto; }
  .tw-track__step::after { top: 2px; left: 0; transform: none; }
  .tw-track__step:last-child { padding-bottom: 0; }
}

@media (max-width: 575.98px) {
  .tw-header__inner { gap: 9px; }
  .tw-search { display: none; }
  .tw-logo__mark { width: 33px; height: 33px; border-radius: 9px; font-size: .95rem; }
  .tw-logo__name { font-size: .95rem; }
  .tw-logo__sub { display: none; }
  .tw-icon-btn { width: 38px; height: 38px; }
  .tw-cart-btn { height: 38px; padding: 0 7px 0 11px; gap: 7px; }
  .tw-cart-btn__count { min-width: 22px; height: 22px; }
  .tw-status { display: none; }
  .tw-profile__claim { display: none; }
}
