/* ==========================================================================
   Səhifəyə xas üslublar
   ========================================================================== */

/* ---------------- Ana səhifə ---------------- */
.hero { position: relative; background: linear-gradient(100deg, #f4eee5 0%, #f1e9dd 50%, #e9dccb 100%); overflow: hidden; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; padding-top: 40px; padding-bottom: 92px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; }
.hero-lead { margin-top: 20px; font-size: 17px; color: var(--ink-2); max-width: 520px; }
.hero-lead b { color: var(--ink); font-weight: 600; }
.hero-points { display: flex; gap: 0; margin-top: 26px; flex-wrap: wrap; }
.hero-points div { display: flex; align-items: center; gap: 10px; padding: 0 18px; font-size: 13.5px; line-height: 1.3; border-left: 1px solid var(--line-strong); max-width: 220px; }
.hero-points div:first-child { padding-left: 0; border-left: 0; }
.hero-points .icon { width: 28px; height: 28px; stroke-width: 1.4; color: var(--olive-800); }
.hero-visual { position: relative; min-height: 300px; }
.hero-visual .rack { position: absolute; right: -40px; bottom: -92px; width: 118%; }
.hero-visual .rack svg { width: 100%; height: auto; }
.hero-float {
  position: absolute; z-index: 2; width: 190px; background: var(--surface); border-radius: 16px; padding: 7px; box-shadow: var(--shadow-lg);
  transition: transform .4s var(--ease);
}
.hero-float img { aspect-ratio: 1; object-fit: cover; border-radius: 11px; width: 100%; }
.hero-float .t { padding: 8px 6px 4px; display: flex; justify-content: space-between; gap: 6px; font-size: 13.5px; font-weight: 600; }
.hero-float .t span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-float.f1 { left: 4%; top: 12px; transform: rotate(-4deg); }
.hero-float.f2 { left: 34%; top: 70px; transform: rotate(3deg); width: 170px; }
.hero-float:hover { transform: rotate(0) translateY(-4px); }

.search-panel {
  position: relative; z-index: 3; margin-top: -40px;
  display: flex; gap: 10px; align-items: center; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
}
.search-panel .input-group { flex: 1.6; min-width: 0; }
.search-panel .input { border-radius: 12px; background: #fdfbf8; }
.search-panel .select-wrap { flex: 1; min-width: 0; }
.search-panel .select { border-radius: 12px; }
.search-panel .btn { flex: none; }

.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cat-tile {
  position: relative; display: flex; align-items: flex-end; height: 132px; padding: 16px; overflow: hidden;
  border-radius: var(--r-lg); background: linear-gradient(135deg, #f4eee4, #e9dfcf); border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tile .label { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; line-height: 1.2; max-width: 60%; }
.cat-tile .label .icon { width: 26px; height: 26px; stroke-width: 1.5; }
.cat-tile .art { position: absolute; right: -14px; bottom: -14px; width: 120px; height: 120px; color: #a78f6b; opacity: .55; transition: transform .4s var(--ease); }
.cat-tile .art .icon { width: 100%; height: 100%; stroke-width: .8; }
.cat-tile:hover .art { transform: scale(1.06) rotate(-3deg); }
.cat-tile .n { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.cat-tile:nth-child(2) { background: linear-gradient(135deg, #eef0e4, #dfe3cd); }
.cat-tile:nth-child(4) { background: linear-gradient(135deg, #f3f0ea, #e4ded3); }
.cat-tile:nth-child(5) { background: linear-gradient(135deg, #f2ebe4, #e6d6c6); }

/* ---------------- Kataloq ---------------- */
.catalog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding-top: 24px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; padding: 18px; scrollbar-width: thin; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filters-head h2 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.filters-head button { color: var(--olive); font-weight: 600; font-size: 13.5px; }
.fgroup { border-bottom: 1px solid var(--line); padding: 14px 0; }
.fgroup:last-child { border-bottom: 0; }
.fgroup > button { width: 100%; display: flex; justify-content: space-between; align-items: center; font-family: var(--serif); font-weight: 600; font-size: 17px; }
.fgroup > button .icon { transition: transform .2s; }
.fgroup.closed > button .icon { transform: rotate(180deg); }
.fgroup.closed .fbody { display: none; }
.fbody { display: grid; gap: 10px; padding-top: 12px; }
.fbody .check .icon { width: 18px; height: 18px; color: var(--ink-2); }
.price-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.price-inputs label { font-size: 12px; color: var(--muted); }
.price-inputs .input { height: 40px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform .15s; }
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--olive); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .input-group { flex: 1; min-width: 240px; }
.toolbar .select { width: auto; border-radius: 999px; height: 44px; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.result-bar h2 { font-size: 21px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sort { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; }
.sort .select { width: auto; height: 42px; border-radius: 10px; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--olive-50); border: 1px solid var(--olive-100); color: var(--olive-800); font-size: 13.5px; }
.mobile-filter-bar { display: none; }

/* ---------------- Elan detalı ---------------- */
.crumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 0; font-size: 14px; color: var(--ink-2); }
.crumbs a:hover { color: var(--olive); }
.crumbs .icon { width: 14px; height: 14px; }
.detail { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 36px; }
.gallery { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
.thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow: auto; scrollbar-width: none; }
.thumbs button { border-radius: 12px; overflow: hidden; border: 2px solid transparent; flex: none; aspect-ratio: 1; background: var(--sand); }
.thumbs button[aria-current="true"] { border-color: var(--olive); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.main-photo { position: relative; aspect-ratio: 1 / 1.05; border-radius: var(--r-xl); overflow: hidden; background: var(--sand); }
.main-photo img { width: 100%; height: 100%; object-fit: cover; }
.main-photo .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.main-photo .nav.prev { left: 12px; } .main-photo .nav.next { right: 12px; }
.main-photo .zoom { position: absolute; top: 14px; right: 14px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; grid-column: 2; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: all .2s; }
.dots span.on { background: var(--olive); width: 18px; border-radius: 4px; }
.d-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.d-title h1 { font-size: clamp(30px, 3.4vw, 44px); }
.d-price { font-family: var(--serif); font-size: 38px; font-weight: 600; margin: 14px 0 18px; letter-spacing: -.02em; }
.spec-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec { display: flex; align-items: center; gap: 12px; padding: 16px 14px; border-left: 1px solid var(--line); }
.spec:first-child { border-left: 0; padding-left: 0; }
.spec .icon { width: 28px; height: 28px; stroke-width: 1.4; color: var(--ink-2); }
.spec small { display: block; font-size: 13px; color: var(--muted); }
.spec strong { font-weight: 600; font-size: 15.5px; }
.condition-note { display: flex; gap: 12px; align-items: center; padding: 14px 18px; margin: 18px 0; border-radius: 12px; background: var(--sand); font-size: 15px; }
.condition-note .icon { color: var(--olive); }
.seller-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.seller-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.seller-card .meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; margin-top: 3px; }
.seller-card .meta span + span { padding-left: 12px; border-left: 1px solid var(--line-strong); }
.seller-card .rating { display: inline-flex; align-items: center; gap: 4px; }
.seller-card .rating .icon { width: 15px; height: 15px; fill: var(--olive); stroke: none; }
.cta-row { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 10px; margin-top: 16px; }
.cta-row .icon-btn { width: 54px; height: 54px; border-radius: 14px; }
.owner-box { margin-top: 16px; padding: 16px; border-radius: 16px; border: 1px dashed var(--line-strong); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.detail-lower { display: grid; grid-template-columns: 1.1fr 1fr 300px; gap: 32px; margin-top: 44px; }
.detail-lower > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.detail-lower h2 { font-size: 24px; margin-bottom: 14px; }
.attr-table { margin-top: 16px; border-top: 1px solid var(--line); }
.attr-table div { display: grid; grid-template-columns: 28px 130px 1fr; gap: 10px; align-items: center; padding: 10px 0; font-size: 14.5px; }
.attr-table .icon { color: var(--ink-2); }
.attr-table span { font-weight: 600; }
.delivery-opt { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 10px; }
.delivery-opt.off { opacity: .45; }
.delivery-opt .icon { width: 34px; height: 34px; stroke-width: 1.3; }
.delivery-opt strong { display: block; font-size: 15.5px; }
.delivery-opt span { font-size: 13px; color: var(--ink-2); }
.delivery-opt .fee { text-align: right; font-size: 12.5px; color: var(--muted); }
.delivery-opt .fee b { display: block; color: var(--ink); font-size: 14.5px; }
.loc-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--olive-50); font-weight: 600; margin-bottom: 14px; }
.eta { display: flex; gap: 14px; align-items: center; padding: 8px 4px 16px; }
.eta .icon { width: 30px; height: 30px; stroke-width: 1.3; }
.eta strong { font-family: var(--serif); font-size: 18px; display: block; }
.mobile-cta { display: none; }

/* Şəkil tam ekran */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(20,18,14,.92); display: grid; place-items: center; padding: 30px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.lightbox .icon-btn { position: absolute; top: 18px; right: 18px; }

/* ---------------- Yeni elan ---------------- */
.steps-head { display: flex; gap: 0; align-items: stretch; }
.steps-head .step-intro { flex: 1.3; }
.steps-head .how { flex: 1; text-align: center; padding: 0 18px; border-left: 1px solid var(--line-strong); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); }
.steps-head .how strong { color: var(--ink); font-size: 14.5px; }
.steps-head .how .icon { width: 34px; height: 34px; stroke-width: 1.3; margin-bottom: 6px; color: var(--ink); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 26px 0 22px; }
.stepper a { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 15.5px; }
.stepper a .num { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-weight: 600; background: var(--surface); transition: all .2s; }
.stepper a.done .num, .stepper a.on .num { background: var(--olive); border-color: var(--olive); color: #fff; }
.stepper a.on { color: var(--ink); font-weight: 600; }
.stepper .line { width: 80px; height: 1.5px; background: var(--line-strong); }
.new-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.new-form { display: grid; gap: 14px; }
.new-form .panel h2 { font-size: 22px; margin-bottom: 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.photos { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.photo { position: relative; width: 150px; aspect-ratio: 1.12; border-radius: 12px; overflow: hidden; background: var(--sand); cursor: grab; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .rm { position: absolute; top: 7px; right: 7px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; }
.photo .rm .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.photo .cover-tag { position: absolute; left: 7px; bottom: 7px; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: var(--olive); color: #fff; }
.photo.dragging { opacity: .4; }
.add-photo { width: 150px; aspect-ratio: 1.12; border-radius: 12px; border: 1.5px dashed var(--line-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 14px; text-align: center; background: #fdfbf8; transition: border-color .15s, background .15s; cursor: pointer; }
.add-photo:hover, .add-photo.drag { border-color: var(--olive); background: var(--olive-50); }
.add-photo .icon { width: 30px; height: 30px; stroke-width: 1.3; color: var(--olive); margin-bottom: 6px; }
.add-photo small { color: var(--muted); font-size: 12px; }
.cond-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.deliv-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.deliv-row .choice .icon { width: 30px; height: 30px; stroke-width: 1.3; }
.form-actions { display: grid; grid-template-columns: 1fr 1.05fr; gap: 14px; }
.preview { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 14px; }
.preview .pv-img { position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: var(--sand); }
.preview .pv-img img { width: 100%; height: 100%; object-fit: cover; }
.preview .pv-img .badge { position: absolute; left: 10px; bottom: 10px; }
.preview .pv-img .fav { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.pv-head { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 10px; font-weight: 700; font-size: 18px; }
.pv-list { display: grid; gap: 9px; font-size: 13.5px; }
.pv-list div { display: flex; align-items: center; gap: 10px; }
.pv-list .icon { width: 18px; height: 18px; color: var(--ink-2); }
.pv-list .dotc { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; }
.tips ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.tips h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }

/* ---------------- Profil ---------------- */
.profile-cover { position: relative; height: 200px; margin-top: 16px; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(100deg, #efe7da, #e8dcc9); }
.profile-cover .art { position: absolute; right: 0; bottom: 0; height: 100%; }
.profile-cover .art svg { height: 100%; width: auto; }
.profile-head { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 26px; margin-top: -92px; padding: 0 10px; align-items: end; }
.profile-avatar { position: relative; width: 200px; height: 200px; border-radius: 50%; border: 6px solid var(--bg); background: var(--sand); box-shadow: var(--shadow); }
.profile-avatar .avatar { width: 100%; height: 100%; font-size: 64px; }
.profile-avatar .vbadge { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; border: 3px solid var(--bg); }
.profile-avatar .vbadge .icon { stroke-width: 3; }
.profile-avatar .change { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); }
.profile-info { padding-bottom: 6px; }
.profile-info .name-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile-info h1 { font-size: clamp(30px, 3.2vw, 40px); }
.profile-info .bio { margin-top: 10px; max-width: 600px; color: var(--ink-2); }
.profile-info .meta { display: flex; gap: 22px; margin-top: 12px; flex-wrap: wrap; font-size: 14.5px; }
.profile-info .meta span { display: inline-flex; align-items: center; gap: 7px; }
.profile-info .meta .star { color: var(--star); fill: currentColor; stroke: none; }
.profile-actions { display: flex; gap: 10px; padding-bottom: 6px; }
.stat-bar { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0 10px; padding: 14px 0; background: var(--sand); border-radius: 16px; }
.stat-bar > div { display: flex; align-items: center; justify-content: center; gap: 14px; border-left: 1px solid var(--line-strong); }
.stat-bar > div:first-child { border-left: 0; }
.stat-bar .icon { width: 30px; height: 30px; stroke-width: 1.4; }
.stat-bar strong { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.stat-bar span { font-size: 14px; color: var(--ink-2); }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; margin-top: 24px; align-items: start; }
.profile-side { display: grid; gap: 14px; }
.profile-side h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin-bottom: 6px; }
.review { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; }
.review .top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.review p { margin-top: 6px; color: var(--ink-2); }

/* ---------------- Mesajlar ---------------- */
.chat-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 20px; margin-top: -40px; position: relative; z-index: 2; height: calc(100vh - var(--header-h) - 40px); min-height: 560px; max-height: 860px; }
.conv-panel { display: flex; flex-direction: column; padding: 14px; overflow: hidden; }
.conv-tabs { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; padding: 5px; background: var(--sand); border-radius: 14px; }
.conv-tabs button { height: 40px; border-radius: 10px; font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.conv-tabs button[aria-selected="true"] { background: var(--olive); color: #fff; }
.conv-list { overflow-y: auto; margin: 12px -6px 0; padding: 0 6px; flex: 1; }
.conv { display: grid; grid-template-columns: 52px 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.conv + .conv { border-top: 1px solid var(--line); }
.conv:hover { background: #fbf8f3; }
.conv[aria-current="true"] { background: var(--olive-50); border-color: transparent; }
.conv[aria-current="true"] + .conv { border-top-color: transparent; }
.conv .thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--sand); }
.conv .name { display: flex; align-items: center; gap: 6px; font-family: var(--serif); font-weight: 600; font-size: 17px; }
.conv .item { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .last { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; align-self: start; font-size: 12.5px; color: var(--muted); }
.conv .unread { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--olive-800); color: #fff; font-size: 12px; display: grid; place-items: center; }
.chat-panel { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head .who strong { display: flex; align-items: center; gap: 6px; font-family: var(--serif); font-size: 19px; }
.chat-head .who small { color: var(--muted); font-size: 13px; }
.chat-head .back { display: none; }
.chat-item { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin: 14px 18px 0; padding: 10px; border-radius: 14px; background: var(--sand); }
.chat-item img { width: 90px; height: 64px; object-fit: cover; border-radius: 10px; }
.chat-item strong { font-family: var(--serif); font-size: 18px; display: block; }
.chat-item .p { font-weight: 700; }
.messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.day-sep { align-self: center; font-size: 12.5px; color: var(--muted); background: var(--sand); padding: 4px 12px; border-radius: 999px; margin: 6px 0; }
.msg-row { display: flex; gap: 10px; align-items: flex-end; max-width: 78%; animation: toast-in .2s var(--ease); }
.msg-row.me { align-self: flex-end; flex-direction: row-reverse; }
.bubble { padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; line-height: 1.5; }
.msg-row.me .bubble { background: #eef0df; border-color: #e2e6cc; border-bottom-right-radius: 6px; }
.msg-row:not(.me) .bubble { border-bottom-left-radius: 6px; }
.msg-time { font-size: 11.5px; color: var(--muted); white-space: nowrap; display: inline-flex; gap: 3px; align-items: center; }
.msg-time .icon { width: 15px; height: 15px; color: var(--olive); }
.typing { font-size: 13px; color: var(--muted); padding: 0 20px 6px; min-height: 20px; }
.quick { display: flex; gap: 8px; padding: 0 18px 10px; overflow-x: auto; scrollbar-width: none; }
.quick .btn { flex: none; }
.composer { display: flex; gap: 10px; align-items: flex-end; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; resize: none; overflow-y: auto; scrollbar-width: none; min-height: 46px; max-height: 140px; height: 46px; padding: 12px 16px; border-radius: 23px; line-height: 1.4; }
.composer .send { width: 50px; height: 50px; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; flex: none; transition: background .15s, transform .12s; }
.composer .send:hover { background: var(--olive-700); }
.composer .send:active { transform: scale(.95); }

/* ---------------- Giriş ---------------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-art { position: relative; background: linear-gradient(120deg, #f1e9dd, #e6d8c4); overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 60px; }
.auth-art .art { position: absolute; right: -20px; bottom: 0; width: 110%; opacity: .95; }
.auth-art h2 { position: relative; font-size: clamp(30px, 3.4vw, 44px); max-width: 460px; }
.auth-art p { position: relative; margin-top: 14px; color: var(--ink-2); max-width: 400px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: min(420px, 100%); display: grid; gap: 16px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 14px; background: var(--sand); }
.auth-tabs button { height: 42px; border-radius: 10px; font-weight: 600; }
.auth-tabs button[aria-selected="true"] { background: var(--surface); box-shadow: var(--shadow-sm); }
.form-error { padding: 12px 14px; border-radius: 10px; background: var(--danger-50); color: var(--danger); font-size: 14px; }

/* ==========================================================================
   Adaptiv
   ========================================================================== */
@media (max-width: 1180px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-lower { grid-template-columns: 1fr 1fr; }
  .detail-lower > div:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .new-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .profile-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .chat-layout { grid-template-columns: 330px minmax(0, 1fr); }
  .steps-head .how { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .profile-head { grid-template-columns: 200px minmax(0, 1fr); }
  .profile-actions { grid-column: 2; padding-bottom: 0; }
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-bottom: 70px; }
  .hero-visual { position: absolute; right: -16px; top: 0; width: 46%; min-height: 0; height: 100%; opacity: .35; z-index: -1; }
  .hero-float { display: none; }
  .hero-visual .rack { right: -30px; bottom: 0; width: 160%; }
  .search-panel { flex-wrap: wrap; }
  .search-panel .input-group { flex-basis: 100%; }
  .search-panel .btn { flex: 1 1 100%; }
  .catalog-layout { grid-template-columns: 1fr; padding-top: 16px; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; max-height: 85vh; z-index: 100; border-radius: 22px 22px 0 0; transform: translateY(100%); transition: transform .28s var(--ease); box-shadow: var(--shadow-lg); }
  body.filters-open .filters { transform: none; }
  body.filters-open .drawer-backdrop { opacity: 1; visibility: visible; }
  .mobile-filter-bar { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; position: sticky; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); margin: 20px -16px 0; background: rgba(250,247,242,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .toolbar .select-wrap { flex: none; }
  .toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .toolbar .input-group { min-width: 100%; }
  .detail { grid-template-columns: 1fr; gap: 18px; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .thumbs { order: 2; flex-direction: row; max-height: none; overflow-x: auto; }
  .thumbs button { width: 84px; }
  .dots { grid-column: 1; order: 1; margin-top: 0; }
  .detail-lower { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .detail-lower > div + div { padding-left: 0; border-left: 0; }
  .detail-lower > div:last-child { grid-template-columns: 1fr; }
  .new-layout { grid-template-columns: 1fr; }
  .preview { position: static; }
  .stepper .line { width: 24px; }
  .stepper a .lbl { display: none; }
  .stepper a.on .lbl { display: inline; }
  .profile-head { grid-template-columns: 130px minmax(0, 1fr); margin-top: -60px; gap: 14px; padding: 0; }
  .profile-avatar { width: 130px; height: 130px; border-width: 4px; }
  .profile-avatar .avatar { font-size: 42px; }
  .profile-avatar .vbadge { width: 32px; height: 32px; right: 4px; bottom: 4px; }
  .profile-actions { grid-column: 1 / -1; }
  .profile-actions .btn { flex: 1; }
  .profile-cover { height: 140px; margin-top: 10px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-side { grid-template-columns: 1fr 1fr; }
  .chat-layout { grid-template-columns: 1fr; margin-top: 12px; height: calc(100dvh - var(--header-h) - 24px); }
  .chat-layout.has-chat .conv-panel { display: none; }
  .chat-layout:not(.has-chat) .chat-panel { display: none; }
  .chat-head .back { display: inline-grid; }
  .msg-banner { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
@media (max-width: 640px) {
  .hero .container { padding-top: 26px; }
  .hero-lead { font-size: 15px; max-width: 70%; }
  .hero-points { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; z-index: 1; }
  .hero-points div { flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 10px; font-size: 12px; max-width: none; }
  .hero-points .icon { width: 24px; height: 24px; }
  .search-panel { padding: 10px; gap: 8px; border-radius: 18px; }
  .search-panel .select-wrap { flex: 1 1 calc(50% - 4px); }
  .search-panel .select { height: 42px; font-size: 14px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat-tile { height: 104px; padding: 10px; border-radius: 14px; }
  .cat-tile .label { font-size: 12.5px; max-width: 100%; }
  .cat-tile .label .icon { width: 22px; height: 22px; }
  .cat-tile .art { width: 76px; height: 76px; right: -10px; bottom: -10px; }
  .cat-tile .n { display: none; }
  .d-price { font-size: 30px; margin: 10px 0 14px; }
  .spec-row { grid-template-columns: 1fr 1fr 1fr; }
  .spec { padding: 12px 8px; gap: 8px; }
  .spec .icon { display: none; }
  .cta-row { grid-template-columns: 1fr 1fr; }
  .cta-row .icon-btn { display: none; }
  .main-photo { border-radius: 16px; aspect-ratio: 1.15; }
  .two-col, .form-grid { grid-template-columns: 1fr; }
  .cond-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .cond-row .choice { padding: 10px; gap: 8px; font-size: 13.5px; }
  .cond-row .choice small { display: none; }
  .deliv-row { grid-template-columns: 1fr; }
  .photo, .add-photo { width: calc(50% - 6px); }
  .form-actions { grid-template-columns: 1fr 1.4fr; }
  .stat-bar { padding: 10px 0; }
  .stat-bar > div { flex-direction: column; gap: 2px; text-align: center; }
  .stat-bar .icon { display: none; }
  .stat-bar strong { font-size: 20px; }
  .stat-bar span { font-size: 12.5px; }
  .profile-side { grid-template-columns: 1fr; }
  .profile-info .meta { gap: 12px; font-size: 13.5px; }
  .chat-item { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; margin: 10px 12px 0; }
  .chat-item img { width: 64px; height: 52px; }
  .chat-item .btn { display: none; }
  .messages { padding: 12px; }
  .msg-row { max-width: 90%; }
  .composer { padding: 10px 12px 12px; }
  .quick { padding: 0 12px 8px; }
  .conv { grid-template-columns: 46px 40px minmax(0, 1fr) auto; gap: 10px; padding: 10px 6px; }
  .conv .thumb { width: 40px; height: 40px; }
}
