/* ===== Design tokens ===== */
:root {
  --c-text: #000;
  --c-text-2: #666;
  --c-title: #222;
  --c-line: #e3e3e3;
  --c-price-sale: #e53a3a;
  --c-new: #70bccc;
  --c-sale: #ee9eae;
  --c-ig: #fe0076;
  --c-fb: #1876f2;
  --gap-x: 5px;
  --gap-y: 8px;
  --font: "Helvetica Neue", Arial, "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--c-text); background: #fff; font-size: 14px; line-height: 1.4; }
img { display: block; max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* ===== Header ===== */
.hd { position: relative; height: 100px; background: #fff; }
.hd__logo { position: absolute; left: 50px; top: 20px; width: 65px; }
.hd__burger { display: none; }
.hd__nav { position: absolute; left: 147px; top: 62px; display: flex; align-items: center; height: 26px; }
.nav-i { display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; font-size: 15px; color: #333; white-space: nowrap; line-height: 26px; }
.nav-i:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }
.chev { width: 12px; height: 8px; stroke-width: 1.4; }
.hd__tools { position: absolute; top: 12px; right: 16px; display: flex; align-items: center; gap: 14px; }
.hd__tools a { display: block; width: 24px; height: 24px; color: #222; }
.hd__tools svg { width: 24px; height: 24px; stroke-width: 1.5; }
.hd__cart { position: relative; width: auto !important; display: flex !important; align-items: center; gap: 2px; }
.hd__cart svg { width: 22px; height: 22px; }
.badge { min-width: 24px; height: 18px; padding: 0 8px; border-radius: 9px; background: #222; color: #fff; font-size: 12px; line-height: 18px; text-align: center; }
.hd__search { position: absolute; right: 16px; top: 62px; width: 104px; }
.hd__search input { width: 100%; height: 26px; border: 0; border-radius: 13px; background: #ebebeb; padding: 0 14px; font: 12px var(--font); color: #333; outline: none; -webkit-appearance: none; appearance: none; }
.hd__search input::placeholder { color: #8a8a8a; }
.hd__search input:focus { background: #e2e2e2; }

/* ===== Brand strip ===== */
.bs { border-bottom: 1px solid var(--c-line); box-shadow: 0 1px 2px rgba(0,0,0,.04); padding: 18px 0 8px; overflow-x: auto; scrollbar-width: none; }
.bs::-webkit-scrollbar { display: none; }
.bs__in { display: flex; justify-content: space-between; align-items: center; min-width: 760px; padding: 0 22px 0 26px; }
.bs__item { flex: none; width: 66px; height: 66px; }
.bs__item img { width: 66px; height: 66px; }

/* ===== Banner grid ===== */
.bgrid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap-x); row-gap: var(--gap-y); margin-top: 14px; }
.bgrid__item img, .tgrid__item img, .mgrid__item img { width: 100%; height: auto; }
.bgrid__item { display: block; aspect-ratio: 1; overflow: hidden; }
.bgrid__item img { height: 100%; object-fit: cover; }

/* ===== Section titles ===== */
.sec__t { font-weight: 400; font-size: 20px; line-height: 28px; text-align: center; color: var(--c-title); margin-bottom: 32px; }
.sec--cats { padding-top: 75px; }
.sec__t--cat { margin-bottom: 40px; }

/* ===== Categories ===== */
.cats { position: relative; box-shadow: 0 2px 5px rgba(0,0,0,.14); border-radius: 0 0 10px 10px; padding-bottom: 12px; }
.cats__row { display: flex; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.cats__row::-webkit-scrollbar { display: none; }
.cat { flex: none; width: 108px; display: flex; flex-direction: column; align-items: center; }
.cat__img { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; display: block; }
.cat__img img { width: 60px; height: 60px; }
.cat__lb { margin-top: 11px; font-size: 16px; line-height: 20px; text-align: center; color: #222; white-space: nowrap; }
.cat:hover .cat__lb { text-decoration: underline; }
.cats__arr { position: absolute; top: 26px; width: 12px; height: 24px; font-size: 20px; line-height: 24px; color: #999; background: #fff; border-radius: 50%; z-index: 1; display: flex; align-items: center; justify-content: center; }
.cats__arr--l { left: 0; } .cats__arr--r { right: 0; }
.cats__arr[disabled] { opacity: .35; cursor: default; }

/* ===== Membership ===== */
.sec--member { padding-top: 50px; }
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-x); }
.mgrid__item { display: block; }

/* ===== Brand tiles ===== */
.sec--brands { padding-top: 69px; }
.sec--brands .sec__t { margin-bottom: 31px; }
.tgrid { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: var(--gap-x); row-gap: 11px; }
.tgrid__item { display: block; aspect-ratio: 1; }
.tgrid__item img { height: 100%; object-fit: cover; }

/* ===== Product groups ===== */
.products { margin-top: 40px; }
.bar-img { display: block; }
.bar-img img { width: 100%; height: auto; }
.pgrid { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: 8px; row-gap: 8px; margin-top: 6px; }
.pgroup { margin-bottom: 10px; }
.bar-img--more { margin-top: 2px; }
.pc { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pc__media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #f3f3f3; }
.pc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pc:hover .pc__media img { transform: scale(1.04); }
.pc__body { position: relative; height: 179px; padding: 14px 6px 0; }
.pc__brand { font-size: 12px; line-height: 18px; color: var(--c-text-2); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { display: block; width: max-content; height: 22px; margin-bottom: 3px; padding: 0 6px; border-radius: 2px; font-size: 11px; line-height: 22px; color: #fff; letter-spacing: .2px; }
.tag--new { background: var(--c-new); }
.tag--sale { background: var(--c-sale); }
.pc__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; line-height: 21px; color: #000; word-break: break-word; }
.pc__name:hover { text-decoration: underline; }
.pc__foot { position: absolute; left: 6px; right: 0; bottom: 10px; }
.pc__price { font-size: 14px; line-height: 20px; color: #333; }
.pc__price--sale { color: var(--c-price-sale); }
.pc__row { display: flex; align-items: center; justify-content: space-between; height: 18px; margin-top: 1px; padding-right: 7px; }
.pc__orig { font-size: 12px; line-height: 17px; color: #888; text-decoration: line-through; }
.pc__icons { display: flex; gap: 9px; margin-left: auto; }
.pc__icons button { width: 18px; height: 18px; color: #222; }
.pc__icons svg { width: 18px; height: 18px; stroke-width: 1.7; }
.pc__icons button:hover { color: var(--c-ig); }
.pc__icons button.on svg { fill: var(--c-ig); stroke: var(--c-ig); }

/* ===== Footer ===== */
.ft { margin-top: 36px; background: #f4f4f4; border-top: 1px solid var(--c-line); color: #333; }
.ft__in { display: grid; grid-template-columns: 1fr 1fr 1fr 2.1fr; gap: 32px; max-width: 1280px; margin: 0 auto; padding: 44px 28px 32px; }
.ft__col h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: #111; }
.ft__col h3 span { font-weight: 400; font-size: 14px; }
.ft__col > a { display: block; font-size: 13px; line-height: 1; padding: 6px 0; color: #444; }
.ft__col > a:hover { color: #000; text-decoration: underline; }
.ft__co { font-style: normal; font-size: 13px; line-height: 1.7; }
.ft__co p { margin-bottom: 8px; color: #444; }
.ft__co p span { color: #666; font-size: 12px; }
.ft__co a { text-decoration: underline; text-underline-offset: 3px; }
.ft__copy { border-top: 1px solid var(--c-line); text-align: center; font-size: 12px; line-height: 1.8; color: #777; padding: 18px 16px 24px; }

/* ===== Floating buttons ===== */
.float { position: fixed; right: 30px; bottom: 22px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.float__b { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); color: #fff; }
.float__b svg { width: 22px; height: 22px; stroke-width: 1.8; }
.float__b svg .f { fill: currentColor; stroke: none; }
.float__ig { background: var(--c-ig); }
.float__fb { background: var(--c-fb); }
.float__fb svg { width: 26px; height: 26px; }
.float__top { background: #fff; color: #444; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.float__top svg { width: 20px; height: 20px; }

/* ===== Overlay / popup / cookie ===== */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; }
.popup { position: fixed; z-index: 110; left: 50%; top: 50%; width: min(360px, 92vw); transform: translate(-50%, -50%); }
.popup img { width: 100%; height: auto; }
.popup__x { position: absolute; top: 11px; right: 11px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.72); color: #fff; font-size: 14px; line-height: 34px; text-align: center; }
.cookie { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(852px, calc(100vw - 24px)); min-height: 92px; background: #fff; border-radius: 3px; padding: 20px 16px; display: grid; grid-template-columns: 1fr auto; column-gap: 40px; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.cookie__t { grid-column: 1; font-size: 12px; line-height: 17px; color: #222; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 690px; }
.cookie__d { grid-column: 1; font-size: 12px; line-height: 17px; color: #222; text-decoration: underline; justify-self: start; margin-top: 0; }
.cookie__ok { grid-column: 2; grid-row: 1 / span 2; font-size: 14px; font-weight: 700; color: #222; padding: 8px 32px 8px 0; margin-right: 14px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .nav-i { padding: 0 9px; font-size: 14px; }
  .hd__nav { left: 132px; }
}
@media (max-width: 900px) {
  .hd__logo { left: 16px; }
  .hd__burger { position: absolute; left: 100px; top: 28px; width: 28px; height: 24px; display: flex; flex-direction: column; justify-content: space-between; padding: 4px 3px; }
  .hd__burger span { height: 2px; background: #222; border-radius: 1px; }
  .hd__nav { display: none; left: 0; right: 0; top: 100px; height: auto; background: #fff; flex-direction: column; align-items: stretch; z-index: 60; box-shadow: 0 8px 14px rgba(0,0,0,.12); padding: 6px 0; }
  .hd.open .hd__nav { display: flex; }
  .nav-i { padding: 12px 20px; }
  .hd__search { top: 62px; }
  .bgrid { grid-template-columns: repeat(2, 1fr); }
  .mgrid { grid-template-columns: repeat(2, 1fr); row-gap: var(--gap-x); }
  .tgrid { grid-template-columns: repeat(3, 1fr); }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .ft__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hd { height: 92px; }
  .hd__logo { top: 14px; left: 12px; width: 58px; }
  .hd__burger { left: 84px; top: 20px; }
  .hd__nav { top: 92px; }
  .hd__tools { top: 14px; right: 10px; gap: 10px; }
  .hd__search { top: 52px; right: 10px; width: 120px; }
  .sec__t { font-size: 17px; margin-bottom: 20px; }
  .sec--cats { padding-top: 48px; }
  .sec--member { padding-top: 36px; }
  .sec--brands { padding-top: 44px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .pc__body { height: 190px; }
  .float { right: 12px; bottom: 90px; }
  .cookie { grid-template-columns: 1fr; bottom: 8px; padding: 12px 14px; }
  .cookie__ok { grid-column: 1; grid-row: auto; justify-self: end; padding: 4px 10px; margin: 4px 0 0; }
  .ft__in { grid-template-columns: 1fr; gap: 20px; padding-top: 32px; }
}
