:root {
  --red: #ef3434;
  --red-dark: #df2424;
  --soft-red: #fff5f5;
  --line: #ededed;
  --text: #333333;
  --muted: #8c8c8c;
  --page: #f2f2f2;
  --panel: #ffffff;
  --footer: #17191f;
  --footer-dark: #111319;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 12px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: 1200px;
  max-width: calc(100vw - 32px);
  margin: 0 auto;
}

.topbar {
  height: 36px;
  background: #f7f7f7;
  border-bottom: 1px solid #e7e7e7;
  color: #888;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}

.top-links {
  display: flex;
  gap: 26px;
}

.top-links a:hover {
  color: var(--red);
}

.site-header {
  display: grid;
  grid-template-columns: 176px 1fr 138px;
  align-items: center;
  gap: 28px;
  height: 106px;
  background: #fff;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: var(--red);
  line-height: 1;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-mark {
  display: block;
  font-family: Georgia, serif;
  font-size: 34px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -3px;
}

.brand-name {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.search {
  display: grid;
  grid-template-columns: 72px 1fr 86px;
  height: 40px;
  border: 2px solid var(--red);
}

.search select,
.search input,
.search button {
  border: 0;
  outline: 0;
  font-family: inherit;
}

.search select {
  padding-left: 14px;
  color: #666;
  background: #fff;
  border-right: 1px solid #eee;
}

.search input {
  padding: 0 14px;
  color: #777;
}

.search button {
  color: #fff;
  background: var(--red);
  font-weight: 700;
  cursor: pointer;
}

.cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  color: #fff;
  background: var(--red);
}


.cart strong {
  margin-left: 8px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 205px;
  gap: 0;
  min-height: 430px;
  background: #fff;
}

.category-card {
  border: 1px solid var(--red);
  border-top: 0;
}

.category-card h2 {
  height: 42px;
  margin: 0;
  padding-left: 24px;
  color: #fff;
  background: var(--red);
  font-size: 14px;
  font-weight: 400;
  line-height: 42px;
}

.category-card a {
  position: relative;
  display: block;
  height: 36px;
  padding-left: 42px;
  color: #555;
  line-height: 36px;
}

.category-card svg {
  /*content: "";*/
  position: absolute;
  top: 7px;
  left: 20px;
  width: 20px;
  height: 20px;
  /*border: 1px solid var(--red);*/
  border-radius: 2px;
}

.category-card a:hover {
  color: var(--red);
  background: var(--soft-red);
}

.main-nav {
  display: flex;
  height: 42px;
  border-bottom: 1px solid #eee;
}

.main-nav a {
  min-width: 96px;
  padding: 0 22px;
  font-size: 14px;
  line-height: 42px;
  text-align: center;
}

.main-nav a.active {
  color: var(--red);
  font-weight: 700;
}

.hero-banner {
  position: relative;
  height: 406px;
  overflow: hidden;
  background: #ddd;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dots {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.dots span {
  width: 8px;
  height: 8px;
  background: #e2e2e2;
  border-radius: 50%;
}

.dots .active {
  background: var(--red);
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 330px;
  margin: 50px 0 0 24px;
  padding: 24px 16px;
  border: 1px solid #ececec;
  background: #fff;
}

.avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: linear-gradient(135deg, #18bfd3, #23d0a4);
  border-radius: 50%;
  font-weight: 700;
}

.member-card p {
  margin: 13px 0 18px;
  color: #aaa;
}

.member-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.member-actions a {
  min-width: 48px;
  height: 22px;
  color: var(--red);
  border: 1px solid #ffaaaa;
  border-radius: 12px;
  line-height: 20px;
  text-align: center;
}

.member-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  color: #888;
  text-align: center;
}

.member-icons span::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 7px;
  background: #ffb43b;
  border-radius: 50%;
}

.member-icons span:nth-child(2)::before {
  background: #4da3ff;
}

.member-icons span:nth-child(3)::before {
  background: #46c56a;
}

.floor {
  margin-top: 18px;
  padding: 0 36px 28px;
  background: #fff;
}

.floor-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.floor-title h2 {
  margin: 0;
  color: var(--red);
  font-size: 18px;
  font-weight: 400;
}

.floor-title a {
  color: var(--red);
  font-size: 15px;
  text-decoration: underline;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 164px);
  justify-content: space-between;
  row-gap: 38px;
}

.product {
  text-align: center;
}

.product img {
  width: 164px;
  height: 132px;
  margin: 0 auto 14px;
  object-fit: cover;
  background: #f8f8f8;
}

#floor-2 .product img,
#floor-3 .product img,
#floor-4 .product img {
  height: 140px;
}

.product h3 {
  height: 36px;
  margin: 0;
  overflow: hidden;
  color: #333;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.product p {
  margin: 8px 0 10px;
  color: var(--red);
  font-size: 13px;
}

.product button,
.product .buy-link {
  display: inline-grid;
  place-items: center;
  width: 140px;
  height: 26px;
  color: #fff;
  border: 0;
  border-radius: 3px;
  background: var(--red);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.product button:hover,
.product .buy-link:hover {
  background: var(--red-dark);
}

.floor-nav {
  position: fixed;
  left: max(24px, calc((100vw - 1200px) / 2 - 64px));
  bottom: 176px;
  z-index: 10;
  width: 48px;
  background: #fff;
  box-shadow: 0 0 0 1px #e5e5e5;
}

.floor-nav a {
  display: block;
  height: 38px;
  border-bottom: 1px solid #e5e5e5;
  color: #444;
  font-weight: 700;
  line-height: 38px;
  text-align: center;
}

.floor-nav a:hover,
.floor-nav a:last-child {
  color: #fff;
  background: var(--red);
}

.side-toolbar {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 10;
  display: grid;
  transform: translateY(-50%);
  background: #202229;
}

.side-toolbar a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 62px;
  color: #f0f0f0;
  border-bottom: 1px solid #33363f;
  font-size: 11px;
  writing-mode: vertical-rl;
}

.side-toolbar a:hover {
  background: var(--red);
}

.service-strip {
  margin-top: 56px;
  padding: 30px 0;
  background: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.service-grid div {
  position: relative;
  min-height: 58px;
  padding-left: 72px;
  border-right: 1px solid #e9e9e9;
}

.service-grid div:last-child {
  border-right: 0;
}

.service-grid strong {
  position: absolute;
  left: 20px;
  top: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--red);
  border: 3px solid var(--red);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 400;
}

.service-grid h3 {
  margin: 8px 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.service-grid p {
  margin: 0;
  color: #999;
}

.footer {
  color: #d1d1d1;
  background: var(--footer);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 45px;
  padding: 36px 0 42px;
}

.footer-links h3 {
  margin: 0 0 13px;
  color: #fff;
  font-size: 15px;
}

.footer-links a {
  display: block;
  margin-bottom: 6px;
  color: #b5b5b5;
}

.copyright {
  padding: 22px 0 28px;
  color: #888;
  background: var(--footer-dark);
  text-align: center;
}

.copyright p {
  margin: 5px 0;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 150px 1fr;
    height: auto;
    padding: 22px 0;
  }

  .cart {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 190px 1fr;
  }

  .member-card {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(4, 164px);
    gap: 34px 20px;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .topbar,
  .floor-nav,
  .side-toolbar {
    display: none;
  }

  .wrap {
    max-width: calc(100vw - 20px);
  }

  .site-header {
    display: block;
    padding: 18px 0;
  }

  .brand {
    display: block;
    margin-bottom: 18px;
  }

  .search {
    grid-template-columns: 64px 1fr 68px;
  }

  .hero-layout {
    display: block;
  }

  .category-card {
    border: 0;
  }

  .category-card h2 {
    padding-left: 16px;
  }

  .category-card a {
    display: inline-block;
    width: 49%;
  }

  .hero-banner {
    height: 235px;
  }

  .floor {
    padding: 0 14px 24px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(132px, 1fr));
    gap: 28px 14px;
  }

  .product img,
  #floor-2 .product img,
  #floor-3 .product img,
  #floor-4 .product img {
    width: 100%;
    height: 126px;
  }

  .product button {
    width: 100%;
  }

  .service-grid,
  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-grid div {
    border-right: 0;
  }
}

.sub-nav-shell {
  background: #fff;
  border-top: 1px solid #f3f3f3;
  border-bottom: 2px solid var(--red);
}

.sub-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 46px;
}

.sub-nav a {
  font-size: 14px;
  line-height: 46px;
}

.sub-nav a.active {
  color: var(--red);
  font-weight: 700;
}

.page-main {
  padding-bottom: 26px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  color: #909090;
}

.crumbs a:hover {
  color: var(--red);
}

.page-head {
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--line);
}

.page-head h1 {
  margin: 0;
  color: #222;
  font-size: 26px;
  font-weight: 400;
}

.page-head p {
  margin: 8px 0 0;
  color: #959595;
  font-size: 13px;
}

.btn-primary,
.btn-secondary {
  display: grid;
  place-items: center;
  height: 40px;
  font-size: 14px;
}

.btn-primary {
  color: #fff;
  background: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  color: var(--red);
  border: 1px solid #ffb0b0;
  background: #fff;
}

.btn-secondary:hover {
  background: var(--soft-red);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
}

.auth-banner {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 520px;
  overflow: hidden;
  background: url("assets/hero-seafood.jpg") center/cover no-repeat;
}

.auth-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(24, 33, 43, 0.22), rgba(239, 52, 52, 0.45));
}

.auth-banner-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 48px 44px;
  color: #fff;
}

.auth-banner-content h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.25;
}

.auth-banner-content p {
  max-width: 420px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 24px;
}

.auth-highlights {
  display: grid;
  gap: 14px;
  max-width: 430px;
  margin-top: 30px;
}

.auth-highlights div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-highlights strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 17px;
  font-weight: 400;
}

.auth-card {
  padding: 34px 36px;
  background: #fff;
  border-top: 3px solid var(--red);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.auth-card h2 {
  margin: 0;
  color: #262626;
  font-size: 28px;
  font-weight: 400;
}

.auth-card > p {
  margin: 10px 0 28px;
  color: #909090;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: #666;
  font-size: 13px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #dbdbdb;
  font: inherit;
}

.form-field input,
.form-field select {
  height: 42px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: #ff8b8b;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8b8b8b;
}

.auth-row a {
  color: var(--red);
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #888;
}

.auth-check input {
  margin: 0;
}

.captcha-row {
  display: flex;
  align-items: end;
  gap: 12px;
}

.captcha-row input {
  flex: 1;
}

.captcha-image {
  width: 120px;
  height: 42px;
  border: 1px solid #dbdbdb;
  object-fit: cover;
  cursor: pointer;
}

.auth-submit {
  height: 46px;
  color: #fff;
  border: 0;
  background: var(--red);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.auth-submit:hover {
  background: var(--red-dark);
}

.auth-note {
  margin-top: 18px;
  padding-top: 18px;
  color: #909090;
  border-top: 1px dashed #ececec;
  line-height: 22px;
}

.filter-panel {
  margin-top: 18px;
  padding: 4px 28px;
  background: #fff;
  border: 1px solid var(--line);
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #f1f1f1;
}

.filter-row:last-child {
  border-bottom: 0;
}

.filter-row h2 {
  width: 74px;
  margin: 0;
  color: #666;
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-chips a {
  min-width: 80px;
  padding: 0 16px;
  color: #666;
  border: 1px solid #f0f0f0;
  background: #fafafa;
  line-height: 28px;
  text-align: center;
}

.filter-chips a.active,
.filter-chips a:hover {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 16px 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.shop-toolbar h2 {
  margin: 0;
  color: var(--red);
  font-size: 18px;
  font-weight: 400;
}

.shop-toolbar p {
  margin: 0;
  color: #949494;
}

.shop-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.shop-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 160px;
  gap: 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
}

.shop-cover img {
  width: 100%;
  height: 146px;
  object-fit: cover;
  background: #f5f5f5;
}

.shop-info h3 {
  margin: 0;
  color: #222;
  font-size: 22px;
  font-weight: 400;
}

.shop-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: #888;
}

.stars {
  color: #ffb43b;
  letter-spacing: 2px;
  font-size: 14px;
}

.shop-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.shop-metrics div {
  padding: 12px 14px;
  background: #fafafa;
}

.shop-metrics span {
  display: block;
  color: #999;
}

.shop-metrics strong {
  display: block;
  margin-top: 4px;
  color: #333;
  font-size: 16px;
  font-weight: 400;
}

.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-tags span {
  padding: 4px 10px;
  color: var(--red);
  border: 1px solid #ffd7d7;
  background: var(--soft-red);
}

.shop-desc {
  margin: 18px 0 0;
  color: #666;
  line-height: 22px;
}

.shop-actions {
  display: grid;
  align-content: center;
  gap: 12px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr) 220px;
  gap: 18px;
  margin-top: 18px;
}

.detail-gallery,
.detail-summary,
.store-card,
.detail-panel,
.recommend-panel {
  background: #fff;
  border: 1px solid var(--line);
}

.detail-gallery {
  padding: 20px;
}

.detail-gallery .main-photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  background: #fafafa;
}

.thumb-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumb-list img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border: 1px solid #f0f0f0;
}

.detail-summary {
  padding: 24px 28px;
}

.detail-summary h1 {
  margin: 0;
  color: #222;
  font-size: 24px;
  font-weight: 400;
  line-height: 34px;
}

.summary-note {
  margin-top: 8px;
  color: #999;
  line-height: 22px;
}

.price-box {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 18px 20px;
  background: var(--soft-red);
}

.price-line {
  display: flex;
  align-items: end;
  gap: 12px;
}

.price-line span {
  color: #888;
}

.price-line strong {
  color: var(--red);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.price-box p {
  margin: 0;
  color: #888;
}

.info-table {
  display: grid;
  gap: 12px;
}

.info-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  color: #666;
  line-height: 22px;
}

.info-row span {
  color: #999;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  height: 34px;
  border: 1px solid #ddd;
}

.qty-box button {
  width: 32px;
  height: 32px;
  color: #666;
  border: 0;
  background: #f7f7f7;
  font: inherit;
  font-size: 16px;
}

.qty-box span {
  width: 40px;
  text-align: center;
}

.action-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.action-row a {
  width: 170px;
  height: 44px;
}

.store-card {
  padding: 20px;
}

.store-card h2 {
  margin: 0;
  color: #222;
  font-size: 18px;
  font-weight: 400;
}

.store-card p {
  margin: 12px 0 0;
  color: #888;
  line-height: 22px;
}

.store-card dl {
  margin: 18px 0;
}

.store-card dt {
  color: #999;
}

.store-card dd {
  margin: 4px 0 12px;
  color: #444;
}

.detail-panel {
  margin-top: 18px;
}

.detail-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
}

.detail-tabs a {
  min-width: 140px;
  height: 48px;
  font-size: 14px;
  line-height: 48px;
  text-align: center;
}

.detail-tabs a.active {
  color: #fff;
  background: var(--red);
}

.detail-content {
  padding: 26px 28px;
  color: #555;
  line-height: 26px;
}

.detail-content h3 {
  margin: 0 0 12px;
  color: #222;
  font-size: 18px;
  font-weight: 400;
}

.spec-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 12px 14px;
  border: 1px solid #f0f0f0;
  text-align: left;
}

.spec-table th {
  width: 160px;
  color: #777;
  background: #fafafa;
  font-weight: 400;
}

.recommend-panel {
  margin-top: 18px;
  padding: 24px 28px 30px;
}

.recommend-panel h2 {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 20px;
  font-weight: 400;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.recommend-item {
  text-align: center;
}

.recommend-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #f7f7f7;
}

.recommend-item h3 {
  min-height: 36px;
  margin: 12px 0 8px;
  color: #333;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.recommend-item p {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 14px;
}

.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.pagination li {
  list-style: none;
}

.pagination li.disabled {
  display: none !important;
}

.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  transition: all 0.2s;
}

.pagination li a:hover {
  color: var(--red);
  border-color: var(--red);
}

.pagination li.active span {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

@media (max-width: 1100px) {
  .auth-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .auth-banner {
    min-height: 360px;
  }

  .shop-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .shop-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-card {
    order: 3;
  }

  .recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sub-nav {
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .page-head,
  .filter-panel,
  .shop-toolbar,
  .shop-card,
  .auth-card,
  .detail-gallery,
  .detail-summary,
  .store-card,
  .detail-content,
  .recommend-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-banner-content {
    padding: 30px 20px;
  }

  .auth-banner-content h1 {
    font-size: 28px;
  }

  .form-grid,
  .shop-metrics,
  .recommend-grid {
    grid-template-columns: 1fr;
  }

  .filter-row,
  .shop-card,
  .action-row,
  .qty-row {
    display: block;
  }

  .filter-row h2 {
    width: auto;
    margin-bottom: 12px;
  }

  .shop-cover img {
    height: 180px;
    margin-bottom: 16px;
  }

  .shop-actions {
    margin-top: 18px;
  }

  .shop-actions a + a {
    margin-top: 12px;
  }

  .thumb-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .thumb-list img {
    height: 92px;
  }

  .action-row a {
    width: 100%;
  }

  .detail-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
}
