body { padding-bottom: 80px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 18px 20px 40px; }
.announce { background: linear-gradient(90deg, var(--primary), #8B5CFF); color: #fff; text-align: center; font-weight: 700; font-size: 13px; padding: 7px 12px; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 200; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr-in { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.s-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 21px; color: var(--text); letter-spacing: -.02em; }
.s-logo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #FF9F1C); font-size: 20px; box-shadow: 0 4px 14px rgba(255,170,30,.35); }
.loc { border: 0; background: none; text-align: left; cursor: pointer; padding: 2px 14px; border-left: 1px solid var(--line); color: var(--text); font: inherit; max-width: 230px; }
.loc b { display: block; font-size: 15px; font-weight: 800; }
.loc span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; transition: .15s; }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: var(--surface); }
.search input { border: 0; background: none; box-shadow: none !important; padding: 12px 0; }
.hdr-acc { border: 0; background: none; font: inherit; font-weight: 700; cursor: pointer; color: var(--text); padding: 8px; white-space: nowrap; }
.cart-btn { display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: var(--green); color: #fff; font: inherit; font-weight: 800; padding: 11px 16px; border-radius: 13px; min-width: 120px; justify-content: center; transition: .15s; }
.cart-btn:hover { filter: brightness(.95); }
.cart-btn small { display: block; font-size: 12px; font-weight: 700; opacity: .9; }
.cart-btn .lines { text-align: left; line-height: 1.15; }
.cart-btn.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.08); } }

/* Banners */
.banners { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin-bottom: 22px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banner { scroll-snap-align: start; border-radius: 20px; padding: 22px; color: #fff; min-height: 168px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; cursor: pointer; background-size: cover; background-position: center; }
.banner::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.14); }
.banner::before { content: ''; position: absolute; right: 50px; top: -50px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.1); }
.banner h3 { font-size: 23px; font-weight: 800; max-width: 75%; position: relative; z-index: 1; }
.banner p { margin: 6px 0 14px; opacity: .92; max-width: 75%; position: relative; z-index: 1; }
.banner .btn { background: #fff; color: #14151C; align-self: flex-start; position: relative; z-index: 1; }

/* Categories */
.h2 { font-size: 20px; font-weight: 800; margin: 6px 0 14px; display: flex; justify-content: space-between; align-items: center; }
.h2 a { font-size: 14px; font-weight: 700; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; margin-bottom: 26px; }
.cat { text-align: center; cursor: pointer; color: var(--text); }
.cat .ci { aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; font-size: 44px; margin-bottom: 7px; transition: transform .15s; overflow: hidden; }
.cat .ci img { width: 100%; height: 100%; object-fit: cover; }
.cat:hover .ci { transform: translateY(-3px); }
.cat span { font-size: 12.5px; font-weight: 700; line-height: 1.25; display: block; }

/* Product cards */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 24px; scrollbar-width: thin; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.pc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; position: relative; transition: box-shadow .15s, transform .15s; }
.pc:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pc .pimg { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 62px; cursor: pointer; margin-bottom: 9px; overflow: hidden; }
.pc .pimg img { width: 100%; height: 100%; object-fit: cover; }
.pc .off { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 8px 0 8px 0; }
.pc .eta { font-size: 10.5px; font-weight: 800; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; align-self: flex-start; color: var(--muted); margin-bottom: 5px; }
.pc .nm { font-weight: 700; font-size: 13.5px; line-height: 1.3; height: 35px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; cursor: pointer; }
.pc .un { color: var(--muted); font-size: 12px; margin: 3px 0 8px; }
.pc .ft { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pc .pr b { display: block; font-size: 14.5px; } .pc .pr s { font-size: 11.5px; color: var(--muted); }
.pc.oos .pimg { filter: grayscale(1); opacity: .55; }
.add { border: 1.5px solid var(--green); color: var(--green); background: var(--green-soft); font: inherit; font-weight: 800; padding: 7px 16px; border-radius: 10px; cursor: pointer; transition: .12s; }
.add:hover { background: var(--green); color: #fff; }
.add:disabled { border-color: var(--line); color: var(--muted); background: var(--surface-2); cursor: not-allowed; }
.step { display: inline-flex; align-items: center; background: var(--green); color: #fff; border-radius: 10px; font-weight: 800; overflow: hidden; }
.step button { border: 0; background: none; color: #fff; font: inherit; font-size: 17px; width: 30px; height: 34px; cursor: pointer; }
.step button:hover { background: rgba(0,0,0,.1); }
.step span { min-width: 20px; text-align: center; }

/* Category page */
.catpage { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.catside { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; max-height: calc(100vh - 100px); overflow-y: auto; }
.catside a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; color: var(--text); font-weight: 600; font-size: 13.5px; border-left: 3px solid transparent; }
.catside a.on { background: var(--primary-soft); border-left-color: var(--primary); color: var(--primary); }
.catside a .e { font-size: 22px; width: 30px; text-align: center; }
.sortbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.chip { border: 1.5px solid var(--line); background: var(--surface); padding: 6px 13px; border-radius: 99px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--text); }
.chip.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

/* Drawer (cart) */
.drawer { position: fixed; inset: 0; z-index: 600; pointer-events: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(12,12,20,.45); opacity: 0; transition: .2s; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(430px, 100%); background: var(--bg); transform: translateX(100%); transition: transform .25s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.drawer.open { pointer-events: auto; } .drawer.open .drawer-bg { opacity: 1; } .drawer.open .drawer-panel { transform: none; }
.dh { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dh h3 { font-size: 18px; font-weight: 800; }
.db { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 12px; align-content: start; }
.df { padding: 14px; background: var(--surface); border-top: 1px solid var(--line); }
.blk { background: var(--surface); border-radius: 16px; padding: 14px; border: 1px solid var(--line); }
.blk h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 10px; }
.citem { display: flex; gap: 11px; align-items: center; padding: 8px 0; }
.citem + .citem { border-top: 1px dashed var(--line); }
.citem .thumb { width: 52px; height: 52px; font-size: 28px; }
.citem .nm { font-weight: 700; font-size: 13.5px; } .citem .un { font-size: 12px; color: var(--muted); }
.citem .pr { text-align: right; min-width: 62px; font-weight: 800; font-size: 13.5px; }
.citem .step button { width: 26px; height: 30px; font-size: 15px; }
.progress { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #34D399); border-radius: 99px; transition: width .4s; }
.bill .r { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13.5px; }
.bill .r.t { font-weight: 800; font-size: 15.5px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.save-banner { background: var(--green-soft); color: var(--green); font-weight: 800; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; text-align: center; }
.tips { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; margin-bottom: 8px; }
.opt.on { border-color: var(--primary); background: var(--primary-soft); }
.opt input { width: auto; }
.coupon-row { display: flex; gap: 8px; }
.cpn { border: 1.5px dashed var(--primary); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cpn code { font-weight: 800; color: var(--primary); font-family: inherit; }
.place { display: flex; align-items: center; justify-content: space-between; width: 100%; background: var(--green); color: #fff; border: 0; border-radius: 14px; padding: 13px 18px; font: inherit; font-weight: 800; font-size: 15.5px; cursor: pointer; }
.place:disabled { opacity: .55; cursor: not-allowed; }
.place small { display: block; font-size: 11.5px; opacity: .9; font-weight: 600; text-align: left; }

/* Tracking */
.track-hero { background: linear-gradient(135deg, var(--primary), #8B5CFF); color: #fff; border-radius: 22px; padding: 22px; position: relative; overflow: hidden; margin-bottom: 14px; }
.track-hero.done { background: linear-gradient(135deg, #0E9F6E, #34D399); }
.track-hero.cancel { background: linear-gradient(135deg, #6B7280, #9CA3AF); }
.track-hero h2 { font-size: 26px; font-weight: 800; }
.track-hero .big-emoji { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 74px; animation: ride 1.6s ease-in-out infinite; }
@keyframes ride { 50% { transform: translateY(-50%) translateX(-10px); } }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 18px; position: relative; z-index: 1; }
.steps div { height: 6px; border-radius: 99px; background: rgba(255,255,255,.3); }
.steps div.on { background: #fff; }
.timeline { display: grid; gap: 0; }
.tl { display: flex; gap: 12px; padding-bottom: 14px; position: relative; }
.tl::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
.stars button { border: 0; background: none; font-size: 30px; cursor: pointer; filter: grayscale(1); opacity: .5; padding: 0 2px; }
.stars button.on { filter: none; opacity: 1; }

.olist .card { padding: 14px 16px; display: flex; gap: 14px; align-items: center; margin-bottom: 10px; cursor: pointer; }
.olist .card:hover { border-color: var(--primary); }
.olist .em { font-size: 24px; letter-spacing: -4px; min-width: 70px; }

/* Location modal */
.loc-modal .opt { justify-content: space-between; }
.otp-input { font-size: 22px; letter-spacing: 10px; text-align: center; font-weight: 800; }

.float-cart { position: fixed; left: 12px; right: 12px; bottom: 74px; z-index: 300; display: none; align-items: center; gap: 12px; background: var(--green); color: #fff; border: 0; border-radius: 16px; padding: 10px 16px; font: inherit; font-weight: 800; box-shadow: 0 10px 30px rgba(14,159,110,.4); cursor: pointer; text-align: left; }
.float-cart small { display: block; font-weight: 600; opacity: .9; font-size: 12px; }
.fc-emojis { font-size: 22px; background: rgba(255,255,255,.2); border-radius: 10px; padding: 4px 6px; letter-spacing: -6px; padding-right: 12px; }
.bnav { display: none; }
.closed-banner { background: var(--red-soft); color: var(--red); border-radius: 14px; padding: 12px 16px; font-weight: 700; margin-bottom: 16px; }
.install-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; margin-bottom: 18px; }

@media (max-width: 860px) {
  .hdr-in { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .s-brand #brandName, .hdr-acc, .cart-btn { display: none; }
  .loc { border: 0; padding: 0; flex: 1; max-width: none; }
  .search { order: 5; flex-basis: 100%; }
  .wrap { padding: 14px 14px 30px; }
  .catpage { grid-template-columns: 84px 1fr; gap: 10px; }
  .catside { top: 120px; }
  .catside a { flex-direction: column; gap: 4px; font-size: 10.5px; text-align: center; padding: 10px 4px; line-height: 1.2; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rail { grid-auto-columns: 148px; }
  .pc .pimg { font-size: 50px; }
  .cats { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cat .ci { font-size: 34px; border-radius: 14px; }
  .cat span { font-size: 11px; }
  .banners { grid-auto-columns: 86%; }
  .banner { min-height: 150px; }
  .float-cart:not(.hidden) { display: flex; }
  .bnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bnav a { display: flex; flex-direction: column; align-items: center; font-size: 11px; font-weight: 700; color: var(--muted); gap: 1px; }
  .bnav a span { font-size: 20px; }
  .bnav a.on { color: var(--primary); }
  .two { grid-template-columns: 1fr; }
  .drawer-panel { width: 100%; }
}
@media (min-width: 861px) { body { padding-bottom: 20px; } }
.track-hero h2, .track-hero #etaLine { padding-right: 96px; position: relative; z-index: 1; }
.track-hero .big-emoji { opacity: .9; }
