/* ===== Aifike Store — storefront styles ===== */
:root {
  --blue: #1e71ce;
  --blue-dark: #0f4c8a;
  --blue-deep: #0b3561;
  --red: #fd0002;
  --text: #222;
  --text-soft: #666;
  --muted: #999;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --bg-nav: #1e71ce;
  --radius: 4px;
  --wrap: 1400px;
  --font: "Alexandria", "Open Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: #1a1a1a; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ---------- top bar ---------- */
.topbar { background: #fff; border-bottom: 1px solid #f0f0f0; }
.topbar .wrap { display: flex; justify-content: flex-end; align-items: center; height: 30px; }
.topbar a { font-size: 11px; color: #777; letter-spacing: .02em; }
.topbar a:hover { color: var(--blue); }

/* ---------- header ---------- */
.header-main { background: #fff; }
.header-main .wrap {
  display: grid;
  /* 显式列定位：logo | 搜索 | 账户+购物车，任何内容宽度都不会挤到下一行 */
  grid-template-columns: 230px minmax(0, 1fr) auto;
  grid-template-areas: "logo search actions";
  align-items: center;
  gap: 30px;
  height: 84px;
}
.logo { display: flex; align-items: center; grid-area: logo; min-width: 0; }
.logo img { display: block; height: 40px; width: auto; max-width: 100%; object-fit: contain; }

.search-form { position: relative; display: flex; border: 2px solid var(--blue); border-radius: 2px; overflow: hidden; max-width: 620px; grid-area: search; min-width: 0; width: 100%; }
.search-form input {
  flex: 1; border: 0; outline: none; padding: 0 14px; height: 40px; font-size: 13px; color: #333; background: #fff;
}
.search-form input::placeholder { color: #999; }
.search-form button {
  width: 52px; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center;
}
.search-form button:hover { background: var(--blue-dark); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 24px; grid-area: actions; min-width: 0; }
.acct { position: relative; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #333; white-space: nowrap; }
.acct a { white-space: nowrap; }
.acct .ico { width: 20px; height: 20px; }
.acct .divider { color: #bbb; }
.acct-panel {
  position: absolute; top: 100%; right: 0; width: 190px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(0,0,0,.08); padding: 8px 0; display: none; z-index: 60;
}
.acct:hover .acct-panel { display: block; }
.acct-panel a { display: block; padding: 8px 16px; font-size: 13px; color: #444; }
.acct-panel a:hover { background: var(--bg-soft); color: var(--blue); }

.cart-link { position: relative; display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.cart-link .ico { width: 22px; height: 22px; }
.cart-link .count {
  position: absolute; top: -8px; left: 12px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--red); color: #fff; border-radius: 20px; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.cart-link .cart-amount { color: #333; font-weight: 600; }
.cart-link small { display: block; color: #888; font-size: 11px; line-height: 1.2; }

/* ---------- main nav ---------- */
.mainnav { background: var(--blue); }
.mainnav .wrap { display: flex; align-items: stretch; height: 46px; padding-left: 0; padding-right: 24px; }
.cats-btn {
  width: 250px; background: var(--blue-deep); color: #fff; font-weight: 700; font-size: 13px;
  letter-spacing: .06em; display: flex; align-items: center; gap: 10px; padding: 0 20px; position: relative;
}
.cats-btn .bars { display: grid; gap: 3px; }
.cats-btn .bars i { width: 16px; height: 2px; background: #fff; display: block; }
.cats-menu {
  position: absolute; top: 100%; left: 0; width: 250px; background: #fff; border: 1px solid var(--line);
  border-top: 0; box-shadow: 0 12px 26px rgba(0,0,0,.12); display: none; z-index: 80; max-height: 460px; overflow: auto;
}
.cats-btn:hover .cats-menu { display: block; }
.cats-menu a { display: flex; justify-content: space-between; padding: 10px 20px; font-size: 13px; color: #444; border-bottom: 1px solid #f5f5f5; }
.cats-menu a:hover { background: #f4f8fe; color: var(--blue); }

.mainnav ul.nav { display: flex; align-items: stretch; }
.mainnav ul.nav li a {
  display: flex; align-items: center; height: 46px; padding: 0 26px; color: #fff; font-size: 13px; font-weight: 600;
  letter-spacing: .02em;
}
.mainnav ul.nav li a:hover { background: rgba(255,255,255,.14); color: #fff; }
.mainnav .nav-right { margin-left: auto; display: flex; align-items: center; color: #dceafd; font-size: 12px; gap: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; background: #eef1f4; }
.hero-track { position: relative; height: 470px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  background: linear-gradient(115deg, #eef4fb 0%, #e3ecf6 55%, #dbe6f2 100%);
}
.hero-slide.on { opacity: 1; }
.hero-copy { padding: 0 0 0 12%; max-width: 620px; }
.hero-copy .kicker { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero-copy h2 { font-size: 42px; line-height: 1.15; margin: 14px 0 12px; letter-spacing: -.02em; }
.hero-copy p { color: #56616e; font-size: 14px; margin: 0 0 26px; max-width: 420px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 30px; background: var(--blue); color: #fff; border: 0; border-radius: 2px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; transition: .2s;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn.ghost:hover { background: #f2f7fd; }
.btn.dark { background: #1a1a1a; }
.btn.block { width: 100%; }
.hero-media { height: 100%; display: grid; place-items: center; }
.hero-media img { max-height: 400px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 9px; z-index: 5; }
.hero-dots i { width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 1px solid #9fb4c9; cursor: pointer; }
.hero-dots i.on { background: var(--blue); border-color: var(--blue); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: rgba(255,255,255,.75);
  border: 1px solid #dbe4ec; display: grid; place-items: center; z-index: 5; color: #35506b;
}
.hero-arrow:hover { background: #fff; }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }

/* ---------- category strip ---------- */
.cat-strip { background: #fff; border-bottom: 1px solid #f0f0f0; }
.cat-strip ul { display: flex; overflow-x: auto; gap: 4px; }
.cat-strip a { display: block; padding: 14px 18px; font-size: 12.5px; color: #555; white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-strip a:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- sections ---------- */
.section { padding: 34px 0 46px; background: var(--bg-soft); }
.section.white { background: #fff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { font-size: 21px; letter-spacing: .01em; }
.section-head h2::after { content: ""; display: block; width: 46px; height: 3px; background: var(--blue); margin-top: 8px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center h2::after { margin: 8px auto 0; }
.section-head .more { font-size: 12px; color: #66717d; border-bottom: 1px solid #c7d0d9; padding-bottom: 1px; }
.section-head .more:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- product card ---------- */
.grid { display: grid; gap: 18px; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.grid.g5 { grid-template-columns: repeat(5, 1fr); }

.pcard { background: #fff; border: 1px solid #eee; position: relative; transition: box-shadow .25s, transform .25s; display: flex; flex-direction: column; }
.pcard:hover { box-shadow: 0 12px 30px rgba(16,38,64,.1); transform: translateY(-2px); }
.pcard .thumb { display: block; aspect-ratio: 1/1; overflow: hidden; background: #fff; padding: 10px; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.pcard:hover .thumb img { transform: scale(1.05); }
.pcard .info { padding: 12px 16px 18px; }
.pcard h3 { font-size: 12.5px; font-weight: 400; color: #4a4a4a; line-height: 1.45; height: 36px; overflow: hidden; margin-bottom: 8px; }
.pcard h3 a:hover { color: var(--blue); }
.pcard .price { font-size: 14px; font-weight: 700; color: #111; }
.pcard .price s { color: #aaa; font-weight: 400; font-size: 12px; margin-left: 8px; }
.pcard .badge {
  position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-size: 10px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; z-index: 2;
}
.pcard .quick {
  position: absolute; inset: auto 0 0 0; background: var(--blue); color: #fff; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: .05em; padding: 10px; opacity: 0; transform: translateY(6px);
  transition: .25s; border: 0; width: 100%;
}
.pcard:hover .quick { opacity: 1; transform: translateY(0); }
.pcard.lg .thumb { padding: 26px; }
.pcard.lg h3 { font-size: 13.5px; height: auto; min-height: 40px; }

/* big 2-col cards for best sellers (matches original) */
.grid.g2 .pcard .thumb { aspect-ratio: 1.28/1; padding: 30px; }

/* ---------- featured category ---------- */
.fcat { background: #fff; border: 1px solid #eee; padding: 22px; }
.fcat .fname { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.fcat .fname a:hover { color: var(--blue); }
.fcat .fcount { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.fcat .fimg { aspect-ratio: 1.15/1; display: grid; place-items: center; padding: 18px 0; }
.fcat .fimg img { max-height: 260px; object-fit: contain; }
.fcat .fprices { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.fcat .fprices span { color: #111; }

/* ---------- about strip ---------- */
.about-strip { background: #fff; padding: 52px 0; }
.about-strip .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.about-strip h2 { font-size: 24px; margin-bottom: 16px; }
.about-strip p { color: #5a6572; font-size: 13.5px; line-height: 1.9; margin: 0 0 22px; }
.about-strip .mini-stats { display: flex; gap: 34px; margin-bottom: 26px; }
.about-strip .mini-stats b { display: block; font-size: 24px; color: var(--blue); }
.about-strip .mini-stats span { font-size: 12px; color: #7b8794; }
.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-visual img { width: 100%; height: 170px; object-fit: contain; background: var(--bg-soft); padding: 12px; }
.about-visual img:first-child { grid-row: span 2; height: 352px; }

/* ---------- breadcrumb / page head ---------- */
.crumbs { background: #fafafa; border-bottom: 1px solid #f0f0f0; }
.crumbs .wrap { padding: 12px 24px; font-size: 12px; color: #8a929b; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--blue); }
.crumbs span.sep { color: #c3c9cf; }
.page-head { padding: 30px 0 22px; border-bottom: 1px solid #f0f0f0; background: #fff; }
.page-head h1 { font-size: 26px; }
.page-head p { color: #7b8794; margin: 8px 0 0; font-size: 13px; }

/* ---------- listing ---------- */
.listing { padding: 28px 0 60px; }
.listing-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.listing-toolbar .count { color: #7b8794; font-size: 12.5px; }
.sorter { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #666; }
.sorter a { padding: 6px 12px; border: 1px solid #e2e6ea; background: #fff; color: #555; }
.sorter a.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.empty { padding: 70px 0; text-align: center; color: #8a929b; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 34px; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #e2e6ea; font-size: 13px; color: #555; }
.pager a.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* collection cards */
.cat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { background: #fff; border: 1px solid #eee; text-align: center; padding: 20px 16px; transition: .25s; }
.cat-card:hover { border-color: var(--blue); box-shadow: 0 10px 26px rgba(16,38,64,.08); }
.cat-card .cimg { height: 150px; display: grid; place-items: center; margin-bottom: 14px; }
.cat-card .cimg img { max-height: 150px; object-fit: contain; }
.cat-card h3 { font-size: 14px; font-weight: 600; }
.cat-card .cn { font-size: 11.5px; color: #98a1aa; margin-top: 4px; }

/* ---------- product detail ---------- */
.pdp { padding: 26px 0 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.pdp-gallery .main { border: 1px solid #eee; aspect-ratio: 1/1; display: grid; place-items: center; padding: 20px; background: #fff; }
.pdp-gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumbs button { width: 74px; height: 74px; border: 1px solid #e5e5e5; background: #fff; padding: 5px; }
.pdp-thumbs button.on { border-color: var(--blue); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info h1 { font-size: 24px; line-height: 1.35; margin-bottom: 14px; }
.pdp-meta { display: flex; gap: 18px; font-size: 12px; color: #8a929b; padding-bottom: 14px; border-bottom: 1px solid #eee; flex-wrap: wrap; }
.pdp-meta .stars { color: #f5a623; letter-spacing: 1px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.pdp-price .now { font-size: 30px; font-weight: 800; color: #111; }
.pdp-price .was { font-size: 15px; color: #a6adb5; text-decoration: line-through; }
.pdp-price .off { background: #fff1f1; color: var(--red); font-size: 11px; font-weight: 700; padding: 3px 8px; }
.pdp-short { color: #5a6572; font-size: 13.5px; line-height: 1.85; margin: 6px 0 20px; }
.pdp-short ul { list-style: disc; padding-left: 18px; }
.pdp-buy { display: flex; gap: 12px; margin: 18px 0 8px; }
.qty { display: flex; align-items: center; border: 1px solid #d9dee3; height: 46px; }
.qty button { width: 40px; height: 44px; background: #fff; border: 0; font-size: 16px; color: #666; }
.qty input { width: 52px; height: 44px; border: 0; border-left: 1px solid #eef0f2; border-right: 1px solid #eef0f2; text-align: center; font-size: 14px; }
.pdp-buy .btn { flex: 1; height: 46px; }
.pdp-stock { font-size: 12px; color: #2f9e44; margin-bottom: 18px; }
.pdp-stock.low { color: #e8590c; }
.pdp-extra { border-top: 1px solid #eee; padding-top: 16px; display: grid; gap: 8px; font-size: 12.5px; color: #66717d; }
.pdp-share { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 12px; color: #8a929b; }
.pdp-share a { width: 28px; height: 28px; border: 1px solid #e5e5e5; display: grid; place-items: center; border-radius: 50%; color: #66717d; font-size: 11px; }
.mobile-buy { display: none; }

.tabs { margin-top: 46px; border-top: 1px solid #eee; }
.tab-nav { display: flex; gap: 34px; border-bottom: 1px solid #eee; }
.tab-nav button { background: none; border: 0; padding: 16px 0; font-size: 14px; font-weight: 600; color: #7b8794; border-bottom: 2px solid transparent; }
.tab-nav button.on { color: #111; border-color: var(--blue); }
.tab-body { padding: 26px 0; color: #4f5963; font-size: 13.5px; line-height: 1.9; }
.tab-body ul { list-style: disc; padding-left: 20px; }
.tab-body li { margin: 6px 0; }
.review-row { border-bottom: 1px solid #f0f0f0; padding: 16px 0; }
.review-row b { font-size: 13px; }

/* ---------- cart / checkout ---------- */
.page-narrow { max-width: 1120px; margin: 0 auto; padding: 30px 24px 70px; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; }
.cart-table th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #8a929b; padding: 12px; border-bottom: 1px solid #e9ecef; font-weight: 600; }
.cart-table td { padding: 16px 12px; border-bottom: 1px solid #f1f3f5; vertical-align: middle; font-size: 13.5px; }
.cart-item { display: flex; gap: 16px; align-items: center; }
.cart-item > a { flex: 0 0 auto; }
.cart-item .t { min-width: 0; }
.cart-item img { width: 76px; height: 76px; flex: none; object-fit: contain; border: 1px solid #eee; background: #fff; }
.cart-item .t { font-size: 13px; }
.cart-item .t small { display: block; color: #98a1aa; margin-top: 3px; }
.cart-summary { background: #fafbfc; border: 1px solid #e9ecef; padding: 24px; margin-top: 22px; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; color: #4f5963; }
.cart-summary .row.total { border-top: 1px solid #e3e7eb; margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 800; color: #111; }
.cart-actions { display: flex; justify-content: space-between; margin-top: 20px; gap: 12px; flex-wrap: wrap; }

.checkout-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: #66717d; margin-bottom: 6px; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #dde2e7; padding: 11px 14px; border-radius: 2px; outline: none; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { border: 1px solid #e9ecef; background: #fff; padding: 24px; }
.panel h3 { font-size: 15px; margin-bottom: 16px; }
.mini-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #eef0f2; font-size: 12.5px; }
.mini-item img { width: 52px; height: 52px; flex: none; object-fit: contain; border: 1px solid #eee; }
.mini-item .mt { flex: 1; }
.mini-item .mq { color: #8a929b; }

/* ---------- order share ---------- */
.share-wrap { background: #f4f6f8; padding: 40px 0 70px; min-height: 60vh; }
.share-card { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid #e6eaee; box-shadow: 0 16px 40px rgba(16,38,64,.06); }
.share-head { padding: 28px 34px; border-bottom: 1px solid #eef0f2; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.share-head .ono { font-size: 12px; color: #8a929b; letter-spacing: .08em; }
.share-head h1 { font-size: 22px; margin: 6px 0 0; }
.share-head .brand { font-size: 13px; font-weight: 800; color: var(--blue); letter-spacing: .02em; }
.share-badge { display: inline-block; padding: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #eef4fd; color: var(--blue); }
.share-body { padding: 8px 34px 30px; }
.share-table { width: 100%; border-collapse: collapse; }
.share-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: #8a929b; padding: 14px 6px; border-bottom: 1px solid #e9ecef; font-weight: 600; }
.share-table th.r, .share-table td.r { text-align: right; }
.share-table td { padding: 14px 6px; border-bottom: 1px solid #f2f4f6; font-size: 13px; vertical-align: middle; }
.share-table .pname { display: flex; gap: 12px; align-items: center; }
.share-table .pname img { width: 48px; height: 48px; flex: none; object-fit: contain; border: 1px solid #eee; background: #fff; }
.share-total { display: flex; justify-content: flex-end; padding-top: 18px; }
.share-total table { min-width: 300px; }
.share-total td { padding: 6px 0; font-size: 13px; color: #4f5963; }
.share-total td.r { text-align: right; }
.share-total tr.grand td { font-size: 19px; font-weight: 800; color: #111; border-top: 1px solid #e9ecef; padding-top: 12px; }
.share-foot { padding: 16px 34px; background: #fafbfc; border-top: 1px solid #eef0f2; font-size: 11.5px; color: #98a1aa; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.share-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px;
  font-size: 12.5px; color: #5a6572; border-top: 1px solid #eef0f2; padding-top: 18px;
}
.share-info b { color: #2b3947; display: block; margin-bottom: 4px; }
.share-note { text-align: center; font-size: 12px; color: #8a929b; margin-top: 18px; }

/* ---------- auth ---------- */
.auth-wrap { min-height: 72vh; background: #f4f6f8; display: grid; place-items: center; padding: 46px 20px; }
.auth-card { width: 100%; max-width: 430px; background: #fff; border: 1px solid #e6eaee; padding: 34px; box-shadow: 0 14px 34px rgba(16,38,64,.06); }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card .sub { color: #8a929b; font-size: 12.5px; margin-bottom: 22px; }
.auth-card .alt { margin-top: 18px; font-size: 12.5px; color: #66717d; text-align: center; }
.alert { padding: 11px 14px; font-size: 12.5px; margin-bottom: 16px; background: #fff5f5; border: 1px solid #ffd3d3; color: #c92a2a; }
.alert.ok { background: #f1fbf4; border-color: #c8ecd4; color: #2b8a3e; }

/* ---------- account ---------- */
.account-grid { display: grid; grid-template-columns: 230px 1fr; gap: 34px; padding: 34px 0 70px; }
.account-grid > *, .checkout-grid > *, .pdp > * { min-width: 0; }
.acct-nav { border: 1px solid #e9ecef; background: #fff; }
.acct-nav .who { padding: 18px; border-bottom: 1px solid #eef0f2; font-size: 13px; }
.acct-nav .who b { display: block; margin-bottom: 2px; }
.acct-nav .who small { color: #98a1aa; font-size: 11.5px; }
.acct-nav a { display: block; padding: 12px 18px; font-size: 13px; color: #4f5963; border-bottom: 1px solid #f6f7f8; }
.acct-nav a.on, .acct-nav a:hover { background: #f4f8fe; color: var(--blue); border-left: 3px solid var(--blue); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-box { background: #fff; border: 1px solid #e9ecef; padding: 20px; }
.stat-box b { display: block; font-size: 24px; color: #111; }
.stat-box span { font-size: 12px; color: #8a929b; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8a929b; text-align: left; padding: 12px; border-bottom: 1px solid #e9ecef; }
.data-table td { padding: 14px 12px; border-bottom: 1px solid #f2f4f6; font-size: 13px; }
.status { display: inline-block; padding: 3px 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; border-radius: 2px; text-transform: capitalize; }
.status.pending { background: #fff4e6; color: #d9480f; }
.status.paid { background: #e7f5ff; color: #1971c2; }
.status.shipped { background: #eef4fd; color: #1e71ce; }
.status.completed { background: #ebfbee; color: #2b8a3e; }
.status.cancelled { background: #f1f3f5; color: #868e96; }
.share-box { border: 1px dashed #b9d4f2; background: #f7fbff; padding: 16px; margin-top: 18px; }
.share-box .link { display: flex; gap: 8px; margin-top: 10px; }
.share-box input { flex: 1; border: 1px solid #cfe0f5; background: #fff; padding: 9px 12px; font-size: 12.5px; }

/* ---------- footer ---------- */
.footer { background: #f3f5f7; border-top: 1px solid #e6eaee; padding: 48px 0 0; }
.footer-cols { display: grid; grid-template-columns: 1.25fr 1.1fr .9fr 1.25fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { font-size: 14px; margin-bottom: 16px; letter-spacing: .02em; }
.footer p, .footer li, .footer address { font-size: 12.5px; color: #5a6572; line-height: 1.9; font-style: normal; }
.footer address { margin: 0; }
.footer .contact-line { display: grid; grid-template-columns: 62px 1fr; gap: 6px; margin-bottom: 6px; }
.footer .contact-line b { color: #2b3947; font-weight: 600; min-width: 42px; }
.footer .more-link { display: inline-block; margin-top: 14px; font-size: 11.5px; color: var(--blue); border-bottom: 1px solid rgba(30,113,206,.35); }
.socials { display: flex; gap: 10px; }
.socials a { width: 32px; height: 32px; border: 1px solid #d9e0e7; background: #fff; display: grid; place-items: center; border-radius: 50%; color: #55616d; }
.socials a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.newsletter { display: flex; margin-top: 12px; }
.newsletter input { flex: 1; border: 1px solid #d9e0e7; border-right: 0; padding: 10px 12px; outline: none; font-size: 12.5px; }
.newsletter button { border: 0; background: var(--blue); color: #fff; padding: 0 18px; font-size: 12px; font-weight: 700; }
.footer-bottom { border-top: 1px solid #e3e8ec; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { font-size: 11.5px; color: #8a929b; margin: 0; }
.footer-bottom .pays { display: flex; gap: 8px; }
.footer-bottom .pays i { width: 34px; height: 22px; background: #fff; border: 1px solid #e0e5ea; border-radius: 3px; display: grid; place-items: center; font-size: 8px; color: #7b8794; font-style: normal; }

/* ---------- toast ---------- */
.toast {
  position: fixed; right: 26px; bottom: 26px; background: #16324f; color: #fff; padding: 13px 20px;
  font-size: 13px; z-index: 200; box-shadow: 0 12px 30px rgba(0,0,0,.2); border-radius: 3px;
  transform: translateY(20px); opacity: 0; transition: .28s; pointer-events: none;
}
.toast.on { transform: translateY(0); opacity: 1; }

/* ---------- generic two-column page (about / contact) ---------- */
.page-split { padding: 36px 24px 70px; display: grid; grid-template-columns: 1.4fr .9fr; gap: 48px; align-items: start; }
.page-split.contact { grid-template-columns: 1.1fr 1fr; gap: 44px; }

/* ---------- two-column info block (order pages) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- mobile drawer (hidden on desktop) ---------- */
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid #dfe6ee; background: #fff;
  border-radius: 3px; padding: 0; justify-items: center; align-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--blue); border-radius: 2px; }
.nav-toggle span:nth-child(2) { width: 13px; }

.mnav-mask {
  position: fixed; inset: 0; background: rgba(12,24,38,.45); z-index: 125;
  opacity: 0; pointer-events: none; transition: opacity .28s;
}
.mnav-mask.on { opacity: 1; pointer-events: auto; }

.mnav {
  position: fixed; top: 0; left: 0; bottom: 0; width: 86vw; max-width: 340px; background: #fff;
  z-index: 130; display: flex; flex-direction: column; transform: translateX(-102%);
  transition: transform .3s cubic-bezier(.4,0,.2,1); pointer-events: none;
  box-shadow: 0 0 44px rgba(12,24,38,.22);
}
.mnav.open { transform: none; pointer-events: auto; }
.mnav-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mnav-logo { display: block; height: 32px; width: auto; max-width: 60%; object-fit: contain; }
.mnav-close { width: 34px; height: 34px; border: 0; background: #f4f6f9; border-radius: 50%; font-size: 20px; line-height: 1; color: #55616d; }
.mnav-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 28px; }

.mnav-search { display: flex; margin: 14px 14px 4px; border: 1.5px solid var(--blue); border-radius: 3px; overflow: hidden; }
.mnav-search input { flex: 1; min-width: 0; border: 0; outline: none; height: 40px; padding: 0 12px; font-size: 16px; color: #333; }
.mnav-search button { width: 46px; flex: none; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; }

.mnav-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 14px 2px; }
.mnav-auth .btn { height: 40px; font-size: 11.5px; padding: 0 6px; }

.mnav-user { margin: 14px 14px 2px; padding: 12px 14px; background: #f4f8fe; border: 1px solid #dbe8f8; font-size: 12.5px; color: #4f5963; }
.mnav-user b { color: #16324f; }
.mnav-user-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; }
.mnav-user-links a { color: var(--blue); font-size: 12.5px; }

.mnav-group { padding: 18px 14px 8px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #9aa4ae; }
.mnav-link { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; font-size: 13.5px; color: #33414f; border-bottom: 1px solid #f4f6f8; }
.mnav-link:active { background: #f4f8fe; }
.mnav-num { background: var(--red); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 20px; display: grid; place-items: center; }
.mnav-cat { color: #4f5963; font-size: 13px; }
.mnav-arrow { color: #c0c8d0; font-size: 15px; }
.mnav-foot { padding: 20px 14px 0; font-size: 11px; color: #9aa4ae; }

body.mnav-open { overflow: hidden; }

/* touch devices: hover-only menus need a click target */
.cats-btn.open .cats-menu { display: block; }
.acct.open .acct-panel { display: block; }
.hero-slide { pointer-events: none; }
.hero-slide.on { pointer-events: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .header-main .wrap { grid-template-columns: 200px minmax(0, 1fr) auto; gap: 16px; }
  .grid.g5 { grid-template-columns: repeat(4, 1fr); }
  .cat-cards { grid-template-columns: repeat(3, 1fr); }
  .hero-copy h2 { font-size: 34px; }
  .pdp { gap: 34px; }
  .page-split { gap: 32px; }
}

@media (max-width: 1024px) {
  .wrap { padding: 0 18px; }
  .header-main .wrap { grid-template-columns: 180px minmax(0, 1fr) auto; gap: 14px; height: 74px; }
  .logo img { height: 36px; }
  .header-actions { gap: 16px; }
  .hero-track { height: 400px; }
  .hero-copy h2 { font-size: 30px; }
  .about-strip .wrap { gap: 30px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .pdp { gap: 26px; }
  .cats-btn { width: 210px; padding: 0 14px; }
  .mainnav ul.nav li a { padding: 0 16px; }
}

/* ---------- tablet & below: two-row header + drawer nav ---------- */
@media (max-width: 900px) {
  .wrap { padding: 0 16px; }

  .header-main .wrap {
    grid-template-columns: 42px 1fr auto;
    grid-template-areas:
      "toggle logo actions"
      "search search search";
    height: auto; padding: 10px 16px 12px; gap: 10px;
  }
  .nav-toggle { display: grid; grid-area: toggle; }
  .logo { grid-area: logo; }
  .header-actions { grid-area: actions; gap: 12px; }
  .search-form { grid-area: search; max-width: none; width: 100%; }
  .search-form input { height: 42px; font-size: 16px; }
  .search-form button { width: 48px; }
  .acct .txt, .acct .divider { display: none; }
  .acct-panel { display: none !important; }
  .cart-link .cart-txt, .cart-link small { display: none; }
  .logo img { height: 32px; }

  .mainnav { position: sticky; top: 0; z-index: 70; }
  .mainnav .wrap { padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
  .mainnav .wrap::-webkit-scrollbar { display: none; }
  .cats-btn { display: none; }
  .mainnav ul.nav li a { height: 44px; padding: 0 15px; font-size: 12.5px; white-space: nowrap; }
  .mainnav .nav-right { display: none; }

  .hero-track { height: 340px; }
  .hero-slide { grid-template-columns: 1.15fr .85fr; }
  .hero-copy { padding: 22px 6px 22px 20px; max-width: none; }
  .hero-copy h2 { font-size: 25px; margin: 10px 0; }
  .hero-copy p { font-size: 12.5px; line-height: 1.6; margin-bottom: 16px; }
  .hero-copy .btn { height: 40px; padding: 0 22px; }
  .hero-media { display: grid; }
  .hero-media img { max-height: 250px; }
  .hero-arrow { display: none; }

  .grid.g3, .grid.g4, .grid.g5 { grid-template-columns: repeat(2, 1fr); }
  .grid.g2 { grid-template-columns: repeat(2, 1fr); }
  .cat-cards { grid-template-columns: repeat(2, 1fr); }

  .pdp { grid-template-columns: 1fr; gap: 20px; }
  .checkout-grid, .account-grid, .about-strip .wrap { grid-template-columns: 1fr; gap: 22px; }
  .page-split, .page-split.contact { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px 50px; }
  .about-visual { display: none; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 26px; }
  .account-grid { padding: 20px 0 50px; }

  .acct-nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .acct-nav::-webkit-scrollbar { display: none; }
  .acct-nav .who { display: none; }
  .acct-nav a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; padding: 11px 14px; font-size: 12.5px; }
  .acct-nav a.on { border-left: 0; border-bottom-color: var(--blue); background: transparent; }

  .share-head, .share-body, .share-foot { padding-left: 18px; padding-right: 18px; }
}

/* ---------- phone ---------- */
@media (max-width: 768px) {
  .topbar { display: none; }
  .header-main .wrap { padding: 9px 14px 10px; gap: 8px; }
  .acct { display: none; }

  .mainnav .wrap { padding: 0 4px; }
  .mainnav ul.nav li a { padding: 0 13px; font-size: 12px; }

  .hero-track { height: 300px; }
  .hero-copy { padding: 22px 18px; }
  .hero-copy .kicker { font-size: 10px; letter-spacing: .12em; }
  .hero-copy h2 { font-size: 23px; margin: 10px 0; }
  .hero-copy p { font-size: 12.5px; line-height: 1.6; margin-bottom: 16px; }
  .hero-dots { bottom: 12px; }
  .btn { height: 42px; padding: 0 22px; font-size: 12px; }

  .section { padding: 22px 0 26px; }
  .section-head { margin-bottom: 14px; }
  .section-head h2 { font-size: 16px; }
  .section-head h2::after { width: 34px; height: 2px; margin-top: 6px; }
  .section-head .more { font-size: 11.5px; }

  .grid { gap: 10px; }
  .pcard .thumb { padding: 6px; }
  .pcard .info { padding: 9px 10px 11px; }
  .pcard h3 { font-size: 11.5px; height: 32px; margin-bottom: 6px; }
  .pcard .price { font-size: 13px; }
  .pcard .price s { font-size: 11px; margin-left: 5px; }
  .pcard .badge { font-size: 9px; padding: 2px 7px; top: 7px; left: 7px; }
  .pcard.lg .thumb { padding: 14px; }
  .pcard.lg h3 { font-size: 13px; height: auto; min-height: 0; }
  .pcard .quick { position: static; opacity: 1; transform: none; padding: 9px; font-size: 11px; }
  .pcard:hover { transform: none; box-shadow: none; }
  .pcard:hover .thumb img { transform: none; }

  .cat-strip a { padding: 11px 12px; font-size: 12px; }

  .crumbs .wrap { padding: 10px 14px; font-size: 11px; }
  .page-head { padding: 20px 0 16px; }
  .page-head h1 { font-size: 20px; }
  .page-head p { font-size: 12px; }

  .listing { padding: 18px 0 40px; }
  .listing-toolbar { gap: 8px; margin-bottom: 12px; }
  .listing-toolbar .count { font-size: 12px; }
  .sorter { width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .sorter::-webkit-scrollbar { display: none; }
  .sorter span { flex: 0 0 auto; white-space: nowrap; }
  .sorter a { flex: 0 0 auto; white-space: nowrap; padding: 6px 10px; font-size: 12px; }
  .pager { margin-top: 22px; }
  .pager a, .pager span { min-width: 32px; height: 32px; font-size: 12px; }

  .cat-card { padding: 12px 10px; }
  .cat-card .cimg { height: 110px; margin-bottom: 10px; }
  .cat-card .cimg img { max-height: 110px; }
  .cat-card h3 { font-size: 12.5px; }

  /* product detail */
  .pdp { padding: 16px 0 30px; }
  .pdp-gallery .main { padding: 10px; }
  .pdp-info h1 { font-size: 17px; line-height: 1.4; margin-bottom: 10px; }
  .pdp-meta { gap: 12px; font-size: 11px; padding-bottom: 10px; }
  .pdp-price { margin: 12px 0; gap: 8px; }
  .pdp-price .now { font-size: 24px; }
  .pdp-price .was { font-size: 13px; }
  .pdp-short { font-size: 12.5px; line-height: 1.75; margin-bottom: 14px; }
  .pdp-thumbs { gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .pdp-thumbs::-webkit-scrollbar { display: none; }
  .pdp-thumbs button { width: 60px; height: 60px; flex: 0 0 auto; }
  .pdp-buy {
    margin: 14px 0 8px; padding: 10px 0; border-top: 1px solid #eef0f2;
  }
  .pdp-buy .btn { font-size: 12px; padding: 0 16px; }
  .mobile-buy {
    display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: #fff; border-top: 1px solid #e6eaee; box-shadow: 0 -8px 24px rgba(16,38,64,.1);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    transform: translateY(120%); transition: transform .25s ease;
  }
  .show-mobile-buy .mobile-buy { transform: none; }
  body.has-mobile-buy { padding-bottom: 74px; }
  .mb-price { flex: none; font-size: 16px; font-weight: 800; color: #111; line-height: 1.2; }
  .mb-price small { display: block; font-size: 10.5px; color: #7d8792; font-weight: 400; margin-top: 2px; }
  .mb-price s { text-decoration: line-through; }
  .mobile-buy .btn { flex: 1; height: 44px; }
  .qty { height: 44px; }
  .qty button { width: 36px; height: 42px; }
  .qty input { width: 44px; height: 42px; font-size: 16px; }
  .tabs { margin-top: 24px; }
  .tab-nav { gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .tab-nav::-webkit-scrollbar { display: none; }
  .tab-nav button { font-size: 13px; white-space: nowrap; }
  .tab-body { font-size: 13px; padding: 18px 0; }

  /* cart: table turns into stacked rows */
  .page-narrow { padding: 16px 14px 44px; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; }
  .cart-table thead { display: none; }
  .cart-table tr {
    position: relative; display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "item item" "price qty" "sub sub";
    gap: 8px 10px; padding: 14px 30px 12px 0; border-bottom: 1px solid #f1f3f5;
  }
  .cart-table td { border: 0; padding: 0; }
  .cart-table td:nth-child(1) { grid-area: item; }
  .cart-table td:nth-child(2) { grid-area: price; align-self: center; font-size: 12.5px; color: #66717d; }
  .cart-table td:nth-child(2)::before { content: "Unit "; color: #9aa4ae; }
  .cart-table td:nth-child(3) { grid-area: qty; justify-self: end; }
  .cart-table td:nth-child(4) { grid-area: sub; display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed #eef0f2; padding-top: 8px; }
  .cart-table td:nth-child(4)::before { content: "Subtotal"; color: #9aa4ae; font-size: 12px; }
  .cart-table td:nth-child(5) { position: absolute; top: 10px; right: 0; }
  .cart-table td:nth-child(5) button { font-size: 20px !important; }
  .cart-item { gap: 10px; }
  .cart-item img { width: 62px; height: 62px; }
  .cart-item .t { font-size: 12.5px; }
  .cart-summary { padding: 16px; margin-top: 14px; }
  .cart-summary .row { font-size: 12.5px; }
  .cart-summary .row.total { font-size: 16px; }
  .cart-actions { flex-direction: column-reverse; }
  .cart-actions .btn { width: 100%; }

  /* checkout */
  .checkout-grid { gap: 16px; }
  .panel { padding: 16px; }
  .panel h3 { font-size: 14px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field input, .field select, .field textarea { font-size: 16px; padding: 10px 12px; }
  .mini-item img { width: 44px; height: 44px; }

  /* shared order view */
  .share-wrap { padding: 16px 0 40px; }
  .share-head { padding: 18px 16px; flex-direction: column; gap: 12px; }
  .share-head h1 { font-size: 18px; }
  .share-head .meta-right { text-align: left !important; display: flex; align-items: center; gap: 10px; }
  .share-head .meta-right .shared-tip { margin-top: 0 !important; }
  .share-body { padding: 2px 16px 20px; }
  .share-table, .share-table tbody, .share-table tr, .share-table td { display: block; }
  .share-table thead { display: none; }
  .share-table tr {
    display: grid; grid-template-columns: auto auto 1fr; gap: 6px 12px;
    padding: 12px 0; border-bottom: 1px solid #f2f4f6;
  }
  .share-table td { border: 0; padding: 0; font-size: 12.5px; }
  .share-table td:nth-child(1) { grid-column: 1 / -1; }
  .share-table td:nth-child(2)::before { content: "×"; margin-right: 1px; color: #9aa4ae; }
  .share-table td:nth-child(3)::before { content: "Unit "; color: #9aa4ae; }
  .share-table td:nth-child(4) { text-align: right; }
  .share-table td:nth-child(4)::before { content: "Total "; color: #9aa4ae; font-weight: 400; }
  .share-table .pname img { width: 42px; height: 42px; }
  .share-total { justify-content: stretch; }
  .share-total table { min-width: 0; width: 100%; }
  .share-info { grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
  .share-foot { padding: 12px 16px; flex-direction: column; gap: 4px; }

  /* account */
  .account-grid { padding: 14px 0 40px; }
  .acct-nav a { padding: 10px 12px; font-size: 12px; }
  .stat-box { padding: 14px; }
  .stat-box b { font-size: 18px; }
  .stat-box span { font-size: 11px; }
  .data-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .data-table th, .data-table td { padding: 10px 12px; }

  /* order list turns into cards so the share link stays reachable */
  .orders-table { display: block; overflow: visible; white-space: normal; background: transparent; }
  .orders-table thead { display: none; }
  .orders-table tbody { display: block; }
  .orders-table tr {
    display: grid; grid-template-columns: 1fr auto; gap: 6px 12px;
    padding: 13px 14px; margin-bottom: 10px; background: #fff; border: 1px solid #e9ecef;
  }
  .orders-table td {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 0; border: 0; font-size: 12.5px;
  }
  .orders-table td::before { color: #9aa4ae; font-size: 11.5px; }
  .orders-table td:nth-child(1) { grid-column: 1; font-size: 13px; }
  .orders-table td:nth-child(1) a { font-size: 13px; }
  .orders-table td:nth-child(4) { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .orders-table td:nth-child(2)::before { content: "Date"; }
  .orders-table td:nth-child(3)::before { content: "Items"; }
  .orders-table td:nth-child(5)::before { content: "Total"; }
  .orders-table td:nth-child(5) { font-weight: 700; }
  .orders-table td:nth-child(6) {
    justify-content: flex-start; gap: 16px; margin-top: 2px; padding-top: 9px; border-top: 1px dashed #eef0f2;
  }
  .share-box { padding: 14px; }
  .share-box .link { flex-wrap: wrap; }
  .share-box input { flex: 1 1 100%; font-size: 12px; }
  .share-box .link .btn { flex: 1; }
  .two-col { grid-template-columns: 1fr; gap: 14px; }

  /* auth */
  .auth-wrap { min-height: 0; padding: 26px 14px 40px; }
  .auth-card { padding: 24px 20px; }
  .auth-card h1 { font-size: 19px; }

  /* footer */
  .footer { padding: 28px 0 0; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; padding-bottom: 26px; }
  .footer-bottom { padding: 14px 0; justify-content: center; text-align: center; }

  .toast { left: 14px; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); padding: 12px 16px; font-size: 12.5px; text-align: center; }
}

@media (max-width: 600px) {
  .hero-slide { grid-template-columns: 1fr; }
  .hero-media { display: none; }
  .grid.g2 { grid-template-columns: 1fr; }
  .grid.g2 .pcard .thumb { aspect-ratio: 1.7/1; padding: 16px; }
}

@media (max-width: 480px) {
  .hero-track { height: 290px; }
  .hero-copy h2 { font-size: 21px; }
  .logo img { height: 28px; }
  .section-head h2 { font-size: 15px; }
  .pcard .quick { font-size: 10.5px; padding: 8px; }
  .cart-item img { width: 56px; height: 56px; }
  .stat-row { grid-template-columns: 1fr; }
  .share-head h1 { font-size: 17px; }
  .tab-nav button { font-size: 12px; }
  .tab-nav { gap: 16px; }
}

