.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
body { background: #f7f8fc; }
.topstrip { background: var(--navy); color: #fff; text-align: center; font-size: 12.5px; padding: 6px 10px; letter-spacing: .02em; }
.topstrip b { color: var(--gold); }
.hdr { background: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line); }
.hdr-in { display: flex; align-items: center; gap: 22px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo img { width: 42px; height: 42px; }
.logo b { display: block; font-size: 21px; color: var(--navy); letter-spacing: -.02em; }
.logo small { display: block; font-size: 11px; color: var(--muted); margin-top: -3px; }
.search { flex: 1; position: relative; max-width: 620px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding: 12px 14px 12px 42px; border-radius: 12px; background: #f3f5f9; border-color: transparent; }
.search input:focus { background: #fff; }
.hdr-act { display: flex; gap: 6px; margin-left: auto; }
.hbtn { position: relative; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; font: inherit; font-weight: 600; color: var(--navy); }
.hbtn:hover { background: #f1f4f9; }
.hbtn .ic { width: 22px; height: 22px; }
.cartbtn { background: var(--navy); color: #fff; }
.cartbtn:hover { background: var(--navy-2); }
.dot { position: absolute; top: 3px; right: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 10.5px; display: grid; place-items: center; padding: 0 4px; }
.catbar { border-top: 1px solid var(--line); }
.catbar .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catbar a { padding: 10px 14px; font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.catbar a:hover, .catbar a.on { color: var(--navy); border-color: var(--gold); }
main { min-height: 60vh; padding-top: 22px; padding-bottom: 50px; }
/* hero banners */
.hero { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 1; background: var(--navy); box-shadow: var(--shadow); }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; cursor: pointer; }
.hero .slide.on { opacity: 1; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.hero .dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: .2s; }
.hero .dots button.on { width: 22px; background: #fff; }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 8px; }
.perk { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.perk .ic { color: var(--blue); width: 22px; height: 22px; }
.perk b { display: block; color: var(--navy); }
.sec { margin-top: 34px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.sec-h h2 { font-size: 22px; color: var(--navy); font-family: 'Playfair Display', Georgia, serif; }
.sec-h a { color: var(--blue); font-weight: 600; font-size: 13.5px; display: inline-flex; gap: 4px; align-items: center; }
.cats { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; }
.cat { text-align: center; cursor: pointer; }
.cat .ci { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; width: 100%; max-width: 104px; transition: .2s; }
.cat .ci .ic { width: 40%; height: 40%; color: #fff; stroke-width: 1.5; }
.cat .ci img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cat:hover .ci { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.cat span { font-size: 13px; font-weight: 600; color: var(--navy); }
.mega { border-radius: 20px; padding: 22px; color: #fff; position: relative; overflow: hidden; }
.mega:before { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.1); }
.mega-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; position: relative; flex-wrap: wrap; }
.mega-h h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 28px; }
.mega-h p { margin: 4px 0 0; opacity: .9; }
.mega-off { background: #fff; color: var(--navy); border-radius: 12px; padding: 8px 14px; font-weight: 700; text-align: center; }
.mega-off b { font-size: 24px; display: block; line-height: 1; }
.countdown { display: flex; gap: 6px; }
.countdown div { background: rgba(0,0,0,.22); border-radius: 8px; padding: 4px 8px; text-align: center; min-width: 48px; }
.countdown b { display: block; font-size: 18px; } .countdown small { font-size: 10px; opacity: .85; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; position: relative; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.pc { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: .2s; color: var(--text); position: relative; }
.pc:hover { box-shadow: 0 10px 28px rgba(16,24,40,.1); transform: translateY(-2px); }
.pc .pimg { aspect-ratio: 1; background: #f3f5f9; cursor: pointer; position: relative; }
.pc .pimg img { width: 100%; height: 100%; object-fit: cover; }
.pc .off { position: absolute; top: 10px; left: 10px; background: var(--pink); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.pc .off.mg { background: var(--gold); color: var(--navy); top: 36px; }
.pc .oos { position: absolute; inset: 0; background: rgba(255,255,255,.7); display: grid; place-items: center; font-weight: 700; color: var(--bad); }
.pc .pb { padding: 12px 13px 13px; display: flex; flex-direction: column; flex: 1; }
.pc .brand { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.pc .pn { font-weight: 600; font-size: 14px; line-height: 1.35; margin: 3px 0 6px; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.pc select { padding: 6px 8px; font-size: 12.5px; border-radius: 8px; margin-bottom: 8px; }
.pc .vlabel { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.pc .pf { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 8px; }
.price b { font-size: 16px; color: var(--navy); } .price s { color: var(--muted); font-size: 12px; margin-left: 4px; }
.addbtn { border: 1.5px solid var(--navy); color: var(--navy); background: #fff; border-radius: 9px; padding: 6px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.addbtn:hover { background: var(--navy); color: #fff; }
.qty { display: inline-flex; align-items: center; background: var(--navy); color: #fff; border-radius: 9px; overflow: hidden; }
.qty button { border: 0; background: transparent; color: #fff; width: 30px; height: 32px; cursor: pointer; font-size: 16px; display: grid; place-items: center; }
.qty button .ic { width: 15px; height: 15px; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.midban { border-radius: 18px; overflow: hidden; cursor: pointer; aspect-ratio: 3 / 1; box-shadow: var(--shadow); }
.midban img { width: 100%; height: 100%; object-fit: cover; }
/* listing */
.listing { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; }
.side { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; position: sticky; top: 140px; }
.side h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 4px 4px 8px; }
.side a { display: block; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; }
.side a:hover { background: #f3f5f9; } .side a.on { background: var(--blue-2); color: var(--blue); font-weight: 600; }
.lhead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.lhead h1 { font-size: 24px; color: var(--navy); font-family: 'Playfair Display', Georgia, serif; }
.lhead select { width: auto; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
/* product page */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.pd .gal img { width: 100%; border-radius: 16px; aspect-ratio: 1; object-fit: cover; background: #f3f5f9; }
.pd .thumbs { display: flex; gap: 8px; margin-top: 10px; } .pd .thumbs img { width: 64px; height: 64px; border-radius: 10px; cursor: pointer; border: 2px solid transparent; object-fit: cover; }
.pd .thumbs img.on { border-color: var(--blue); }
.pd h1 { font-size: 26px; color: var(--navy); margin: 6px 0 10px; }
.pd .bp { display: flex; align-items: baseline; gap: 10px; margin: 12px 0; } .pd .bp b { font-size: 28px; color: var(--navy); } .pd .bp s { color: var(--muted); }
.pd .save { color: var(--ok); font-weight: 600; }
.vopts { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 18px; }
.vopt { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 14px; cursor: pointer; font: inherit; text-align: left; }
.vopt small { display: block; color: var(--muted); }
.vopt.on { border-color: var(--blue); background: var(--blue-2); }
.vopt:disabled { opacity: .5; cursor: not-allowed; }
.pd .desc { color: #3f4859; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; } .crumbs a:hover { color: var(--blue); }
/* drawer */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(11,37,69,.4); opacity: 0; transition: .25s; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: #f7f8fc; transform: translateX(100%); transition: .28s; 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: 18px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.dh h3 { font-size: 18px; color: var(--navy); }
.db { flex: 1; overflow-y: auto; padding: 14px 16px; }
.df { background: #fff; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.ci-row { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; align-items: center; }
.ci-row img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; }
.ci-row .nm { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.sum { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 8px; }
.sum .l { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13.5px; }
.sum .l.tot { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 16px; color: var(--navy); }
.coupon-box { display: flex; gap: 8px; margin-top: 10px; } .coupon-box input { text-transform: uppercase; }
.free-bar { background: var(--gold-2); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 10px; color: #6b5300; }
.free-bar .bar { height: 5px; background: rgba(0,0,0,.08); border-radius: 3px; margin-top: 6px; overflow: hidden; } .free-bar .bar i { display: block; height: 100%; background: var(--gold); }
/* checkout / account */
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.panel h2 { font-size: 18px; color: var(--navy); margin-bottom: 14px; }
.payopt { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; }
.payopt.on { border-color: var(--blue); background: var(--blue-2); }
.auth { max-width: 420px; margin: 20px auto; }
.auth .panel { padding: 28px; }
.auth h1 { font-size: 24px; color: var(--navy); margin-bottom: 4px; font-family: 'Playfair Display', Georgia, serif; }
.acc-grid { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; display: flex; gap: 14px; align-items: center; cursor: pointer; }
.order-card:hover { border-color: var(--blue); }
.thumbs-sm { display: flex; } .thumbs-sm img { width: 44px; height: 44px; border-radius: 8px; border: 2px solid #fff; margin-left: -10px; object-fit: cover; } .thumbs-sm img:first-child { margin-left: 0; }
.timeline { display: flex; justify-content: space-between; margin: 18px 0 8px; position: relative; }
.timeline:before { content: ''; position: absolute; left: 6%; right: 6%; top: 13px; height: 3px; background: var(--line); }
.timeline .st { text-align: center; position: relative; flex: 1; font-size: 12px; color: var(--muted); }
.timeline .st i { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; margin: 0 auto 6px; }
.timeline .st.done i { background: var(--ok); border-color: var(--ok); color: #fff; } .timeline .st.done { color: var(--text); font-weight: 600; }
.timeline .st i .ic { width: 14px; height: 14px; }
.msgs { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.msg { max-width: 78%; padding: 9px 13px; border-radius: 12px; background: #f0f3f8; }
.msg.me { align-self: flex-end; background: var(--blue-2); }
.msg small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.notif { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; display: flex; gap: 12px; }
.notif.unread { border-left: 4px solid var(--blue); }
.notif .ic { color: var(--blue); margin-top: 2px; }
.ftr { background: var(--navy); color: #c9d3e6; padding: 36px 0 26px; }
.ftr-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.ftr h4 { color: #fff; margin-bottom: 10px; font-size: 14px; }
.ftr a { display: block; padding: 3px 0; font-size: 13px; } .ftr a:hover { color: var(--gold); }
.ftr .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: 12px; text-align: center; }
.bottomnav { display: none; }
@media (max-width: 1000px) {
  .cats { grid-template-columns: repeat(5, 1fr); }
  .perks { grid-template-columns: 1fr 1fr; }
  .listing, .acc-grid, .two { grid-template-columns: 1fr; }
  .side { position: static; }
  .pd { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 14px; }
  .hdr-in { flex-wrap: wrap; height: auto; padding: 10px 14px 12px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hbtn .lbl { display: none; }
  .hero, .midban { border-radius: 12px; }
  #toasts { bottom: 80px; }
  .cats { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .cat span { font-size: 11.5px; }
  .pgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hscroll { grid-auto-columns: 46%; }
  .pc .pb { padding: 10px; } .pc .pn { font-size: 13px; } .addbtn { padding: 5px 10px; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .pd { padding: 16px; }
  .bottomnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 50; }
  .bottomnav a { flex: 1; text-align: center; padding: 8px 0 7px; font-size: 11px; color: var(--muted); position: relative; }
  .bottomnav a .ic { display: block; margin: 0 auto 2px; width: 22px; height: 22px; }
  .bottomnav a.on { color: var(--navy); font-weight: 600; }
  body { padding-bottom: 60px; }
  .mega-h h2 { font-size: 22px; }
}
