/* Vela fashion shop app */
:root {
  --font: "Inter Tight", system-ui, sans-serif;
  --disp: "Syne", "Inter Tight", sans-serif;
  --bg: #f6f6f4;
  --panel: #ffffff;
  --ink: #141414;
  --ink-2: #6b6b6b;
  --line: #e5e5e2;
  --accent: #6e1f2a;
  --sheet: #ffffff;
}
body { background: #e6e6e2; }
h2 { font-family: var(--disp); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.link { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  height: 56px; border-radius: var(--r-btn); font-weight: 600; font-size: 16px;
}
.btn.dark { background: var(--ink); color: #fff; }
.btn.light { background: #f0f0ed; color: var(--ink); }
.row-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 20px 10px; }
.count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.count[hidden] { display: none; }
.bagbtn, .tab .pill { position: relative; }
.tab .pill .count { top: -4px; right: -2px; }

/* Header */
.top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 0 10px; min-height: 52px; }
.word { justify-self: center; font-family: var(--disp); font-weight: 800; font-size: 22px; letter-spacing: 0.32em; padding-left: 0.32em; }
.order-note { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 4px 16px 6px; padding: 12px 14px; border-radius: 18px; background: var(--ink); color: #fff; text-align: left; }
.order-note[hidden] { display: none; }
.order-note > span:first-child { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); }
.order-note > span:nth-child(2) { flex: 1; display: grid; line-height: 1.3; }
.order-note b { font-size: 14px; font-weight: 600; }
.order-note small { font-size: 13px; opacity: 0.65; }

/* Hero */
.hero {
  position: relative; display: grid; grid-template-columns: 1.35fr 1fr; align-items: stretch; width: calc(100% - 32px); height: 290px;
  margin: 6px 16px 0; border-radius: 26px; overflow: hidden; background: var(--t); text-align: left;
}
.h-copy { display: flex; flex-direction: column; padding: 22px 0 22px 22px; position: relative; z-index: 1; }
.h-copy small { font-size: 13px; font-weight: 600; color: rgba(20, 20, 20, 0.6); }
.h-copy b { font-family: var(--disp); font-size: 25px; line-height: 1.02; font-weight: 800; margin-top: 8px; letter-spacing: -0.02em; }
.h-copy em { margin-top: auto; font-style: normal; font-size: 14px; font-weight: 600; align-self: flex-start; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; }
.h-art { position: relative; }
.h-art svg { position: absolute; right: -24px; bottom: -14px; width: 230px; height: 276px; }

/* Garment art */
.g { display: block; overflow: visible; }
.g .shade { fill: rgba(0, 0, 0, 0.13); }
.g .hi { fill: rgba(255, 255, 255, 0.16); }
.g .ln { fill: none; stroke: rgba(0, 0, 0, 0.18); stroke-width: 2; stroke-linecap: round; }
.g .lnw { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 2; stroke-linecap: round; }
.g .btn-d { fill: rgba(0, 0, 0, 0.35); }
.g .floor { fill: rgba(0, 0, 0, 0.08); }

/* Categories */
.cats { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 20px 20px 2px; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; display: grid; justify-items: center; gap: 8px; font-size: 13px; font-weight: 600; width: 66px; }
.cats span { width: 66px; height: 66px; border-radius: 50%; background: var(--t); display: grid; place-items: center; overflow: hidden; }
.cats span svg { width: 46px; height: 54px; }

/* Product cards */
.rail { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 0 20px 4px; scroll-snap-type: x mandatory; scroll-padding: 0 20px; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { width: 158px; flex: none; scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; padding: 0 16px; }
.card { position: relative; display: grid; gap: 8px; text-align: left; cursor: pointer; }
.c-art { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; background: var(--t); display: grid; place-items: center; overflow: hidden; transition: transform 0.35s var(--ease); }
.card:hover .c-art { transform: translateY(-2px); }
.c-art svg { width: 78%; height: 78%; transition: transform 0.5s var(--ease); }
.card:hover .c-art svg { transform: scale(1.03); }
.c-tag { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: #fff; }
.c-tag.low { background: var(--accent); color: #fff; }
.like {
  position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(6px); z-index: 2;
}
.like .ic { width: 18px; height: 18px; }
.like[aria-pressed="true"] { color: var(--accent); }
.like[aria-pressed="true"] svg, .pd-like[aria-pressed="true"] svg { fill: currentColor; }
.c-txt { display: grid; gap: 2px; padding: 0 2px; }
.c-txt b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-txt span { font-size: 14px; color: var(--ink-2); }
.c-dots { display: flex; gap: 4px; margin-top: 2px; }
.c-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--s); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }

/* Members band */
.band { margin: 26px 16px 0; padding: 22px; border-radius: 24px; background: var(--accent); color: #fff; display: grid; gap: 4px; }
.band small { font-size: 13px; opacity: 0.7; font-weight: 600; }
.band b { font-family: var(--disp); font-size: 24px; line-height: 1.1; font-weight: 800; }
.band span { font-size: 14px; opacity: 0.75; }

/* Shop */
.search-row { display: flex; gap: 8px; padding: 0 16px; }
.search { flex: 1; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.search input { flex: 1; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); min-width: 0; }
.filter { position: relative; width: 48px; height: 48px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.filter .dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: #ff7a6b; box-shadow: 0 0 0 2px var(--ink); }
.filter .dot[hidden] { display: none; }
[data-os="android"] .search, [data-os="android"] .filter { border-radius: 999px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 16px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.count-line { padding: 14px 20px 10px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.empty { grid-column: 1 / -1; padding: 50px 24px; text-align: center; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.empty b { display: block; color: var(--ink); font-family: var(--disp); font-size: 18px; margin-bottom: 4px; }

/* Product */
.scr.product { padding-top: 0; padding-bottom: 0; }
.pd-media { position: relative; height: 470px; padding-top: var(--top); background: var(--t, #e6dfd6); transition: background 0.5s; }
.pd-media .bar { position: relative; z-index: 2; }
.pd-media .bar .iconbtn { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(8px); }
.pd-art { position: absolute; inset: 70px 30px 26px; display: grid; place-items: center; }
.pd-art svg { position: absolute; width: 100%; height: 100%; }
.pd-like { position: absolute; right: 16px; bottom: -24px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35); z-index: 3; }
.pd-like[aria-pressed="true"] { color: var(--accent); }
.pd-body { padding: 22px 20px 0; }
.pd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-right: 50px; }
.pd-head small { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.pd-head h1 { font-family: var(--disp); font-size: 26px; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.price { font-size: 20px; font-weight: 700; white-space: nowrap; margin-top: 18px; }
.tagline { font-size: 15px; line-height: 1.5; color: #3c3c3c; margin-top: 10px; }
.opt-head { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; min-height: 30px; font-size: 14px; color: var(--ink-2); }
.opt-head b { color: var(--ink); font-weight: 600; }
.swatches { display: flex; gap: 12px; margin-top: 8px; }
.swatches button { width: 44px; height: 44px; border-radius: 50%; background: var(--s); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); position: relative; }
.swatches button::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; transform: scale(0.85); transition: opacity 0.2s, transform 0.3s var(--ease); }
.swatches button[aria-checked="true"]::after { opacity: 1; transform: scale(1); }
.sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.sizes button { height: 48px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; }
.sizes button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sizes button[disabled] { color: #b9b9b5; background: repeating-linear-gradient(135deg, #fff 0 6px, #f3f3f1 6px 12px); cursor: not-allowed; text-decoration: line-through; }
.sizes.wide { grid-template-columns: repeat(4, 1fr); }
.sizes.one { grid-template-columns: 1fr; }
.sizes.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.acc { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 4px; }
.acc + .acc { margin-top: 0; }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 48px; font-weight: 600; font-size: 15px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 22px; font-weight: 400; transition: transform 0.25s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc p { font-size: 14px; line-height: 1.55; color: #3c3c3c; padding-bottom: 12px; }
.scr.product .row-head { padding: 18px 0 10px; }
.scr.product .rail { margin: 0 -20px; }
.dock { position: sticky; bottom: 0; z-index: 4; margin-top: 18px; padding: 12px 16px calc(var(--bottom) + 8px); background: linear-gradient(rgba(246, 246, 244, 0), var(--bg) 26%); }

/* Fly-to-bag clone and shared-element clone */
.fly { position: absolute; z-index: 90; pointer-events: none; display: grid; place-items: center; overflow: hidden; background: var(--t); }
.fly svg { width: 78%; height: 78%; }

/* Bag */
.lines { list-style: none; display: grid; gap: 10px; padding: 4px 16px 0; }
.line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 10px; border-radius: 22px; background: #fff; position: relative; }
.l-art { width: 84px; height: 106px; border-radius: 14px; background: var(--t); display: grid; place-items: center; overflow: hidden; }
.l-art svg { width: 82%; height: 82%; }
.l-txt { display: grid; align-content: start; gap: 2px; padding-right: 34px; }
.l-txt b { font-size: 15px; font-weight: 600; }
.l-txt small { font-size: 13px; color: var(--ink-2); }
.l-txt strong { font-size: 15px; margin-top: 6px; }
.qty { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.qty span { min-width: 18px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.l-del { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.bag-foot { padding: 14px 16px 0; display: grid; gap: 14px; }
.bag-foot[hidden] { display: none; }
.promo { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 14px; border-radius: 16px; border: 1px dashed #c8c8c3; color: var(--ink-2); }
.promo input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); text-transform: uppercase; }
.promo input::placeholder { text-transform: none; }
.promo button { height: 40px; padding: 0 14px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; }
.promo.ok { border-style: solid; border-color: #2f8a4f; color: #2f8a4f; }
.promo.bad { border-color: #c2412d; animation: shake 0.4s; }
.sum { display: grid; gap: 10px; font-size: 15px; }
.sum.pad { padding: 18px 20px 0; }
.sum div { display: flex; justify-content: space-between; }
.sum div[hidden] { display: none; }
.sum dt { color: var(--ink-2); }
.sum dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.sum .total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 18px; }
.sum .total dt { color: var(--ink); font-weight: 600; }
.sum .total dd { font-weight: 700; }

/* Checkout */
.block { padding: 10px 16px 6px; }
.block h2 { font-size: 16px; margin: 6px 4px 10px; }
.card-row, .ship-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 14px; border-radius: 18px; background: #fff; text-align: left; border: 2px solid transparent; }
.card-row > span:nth-child(2), .ship-opt > span { flex: 1; display: grid; line-height: 1.3; }
.card-row b, .ship-opt b { font-size: 15px; font-weight: 600; }
.card-row small, .ship-opt small { font-size: 13px; color: var(--ink-2); }
.card-row em, .ship-opt em { font-style: normal; font-weight: 600; font-size: 14px; }
.card-row em { text-decoration: underline; text-underline-offset: 3px; }
.cr-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: #f0f0ed; }
.ship { display: grid; gap: 8px; }
.ship-opt[aria-checked="true"] { border-color: var(--ink); }
.ship-opt .wallet { display: flex; align-items: center; gap: 10px; }
.scr[data-screen="checkout"], .scr[data-screen="track"] { padding-bottom: 0; }
.scr[data-screen="checkout"] .dock, .scr[data-screen="track"] .dock { margin-top: 24px; }

/* Tracking */
.t-hero { display: grid; justify-items: center; gap: 10px; padding: 8px 24px 4px; text-align: center; }
.t-check { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.t-hero h1 { font-family: var(--disp); font-size: 28px; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.t-hero p { font-size: 15px; color: var(--ink-2); line-height: 1.45; max-width: 290px; }
.route { position: relative; margin: 26px 32px 6px; height: 40px; }
.r-line { position: absolute; left: 0; right: 0; top: 18px; height: 4px; border-radius: 2px; background: #e2e2de; overflow: hidden; }
.r-line i { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.r-truck { position: absolute; top: 0; left: 0; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 0 0 6px var(--bg); }
.steps { list-style: none; display: grid; padding: 14px 24px 0; }
.steps li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; position: relative; padding-bottom: 16px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: #e2e2de; }
.steps li.on:not(:last-child)::before { background: var(--ink); }
.s-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d4d4cf; background: var(--bg); position: relative; z-index: 1; transition: background 0.3s, border-color 0.3s; }
.steps li.on .s-dot { background: var(--ink); border-color: var(--ink); }
.steps li.now .s-dot { box-shadow: 0 0 0 5px rgba(20, 20, 20, 0.12); }
.steps div { display: grid; line-height: 1.3; }
.steps b { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.steps li.on b { color: var(--ink); }
.steps small { font-size: 13px; color: var(--ink-2); }
.t-items { display: flex; gap: 8px; padding: 6px 24px 0; }
.t-items span { width: 56px; height: 70px; border-radius: 12px; background: var(--t); display: grid; place-items: center; overflow: hidden; }
.t-items svg { width: 80%; height: 80%; }

/* Tab bar: a translucent bar on iOS, Material on Android */
.tabs {
  position: absolute; z-index: 60; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); height: calc(58px + var(--bottom)); padding: 4px 8px var(--bottom);
  background: rgba(246, 246, 244, 0.86); backdrop-filter: blur(18px) saturate(1.4); border-top: 1px solid var(--line); color: #9a9a96;
}
.tab { display: grid; justify-items: center; gap: 2px; align-content: center; font-size: 11px; font-weight: 600; }
.tab em { font-style: normal; }
.tab[aria-current="true"] { color: var(--ink); }
.tab .pill { display: grid; place-items: center; width: 40px; height: 28px; border-radius: 14px; }
.scr.has-tabs { padding-bottom: calc(var(--bottom) + 80px); }
[data-os="android"] .tabs { height: calc(80px + var(--bottom)); padding: 0 6px var(--bottom); background: #fbfbf9; backdrop-filter: none; border-top: 0; box-shadow: 0 -1px 0 var(--line); color: var(--ink-2); }
[data-os="android"] .tab .pill { width: 60px; height: 32px; border-radius: 16px; }
[data-os="android"] .tab[aria-current="true"] .pill { background: #ead9db; color: #3d0f16; }
[data-os="android"] .scr.has-tabs { padding-bottom: calc(var(--bottom) + 104px); }

/* Sheets */
.sheet h3 { font-size: 14px; font-weight: 600; margin: 16px 0 8px; color: var(--ink-2); }
.sheet h3 b { color: var(--ink); }
.seg { display: flex; gap: 4px; padding: 4px; background: #efefec; border-radius: 14px; }
.seg button { flex: 1; height: 38px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.seg button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
[data-os="android"] .seg, [data-os="android"] .seg button { border-radius: 999px; }
.range { width: 100%; accent-color: var(--ink); height: 30px; }
.f-colours { display: flex; gap: 12px; }
.f-colours button { width: 40px; height: 40px; border-radius: 50%; background: var(--s); position: relative; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.f-colours button[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink); }
.f-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 22px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.size-table th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 8px 4px; border-bottom: 1px solid var(--line); }
.size-table td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.size-table td:first-child { font-weight: 700; }
.nav-row, .switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; width: 100%; font-size: 16px; font-weight: 500; text-align: left; border-top: 1px solid var(--line); }
.nav-row > span, .switch-row > span { display: flex; align-items: center; gap: 12px; }
.switch-row input { appearance: none; width: 51px; height: 31px; border-radius: 999px; background: #dcdcd8; position: relative; cursor: pointer; flex: none; transition: background 0.25s; }
.switch-row input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform 0.3s var(--ease); }
.switch-row input:checked { background: var(--ink); }
.switch-row input:checked::after { transform: translateX(20px); }
.g .shade2 { fill: rgba(0, 0, 0, 0.07); }
