.shop-topbar {
  height: var(--shop-topbar-h);
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-xs);
  display: flex;
  align-items: center;
}

.shop-topbar .shop-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: var(--space-4);
}

.shop-topbar a {
  color: var(--color-cyan);
  text-decoration: none;
}

.shop-topbar a:hover { text-decoration: underline; }

.shop-header {
  position: sticky;
  top: 0;
  z-index: var(--shop-z-header);
  background: var(--color-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.shop-header__inner {
  height: var(--header-h);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-3);
}

.shop-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  align-self: stretch;
  padding-right: var(--space-2);
  margin-right: var(--space-1);
}

.shop-header__logo img {
  display: inline-block;
  height: auto;
  max-height: 40px;
  max-width: 115px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  vertical-align: middle;
}

.shop-nav-wrap {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.shop-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.shop-nav li {
  flex: 0 0 auto;
}

.shop-nav--scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}

.shop-nav--scroll::-webkit-scrollbar {
  height: 4px;
}

.shop-nav--scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 174, 239, 0.35);
  border-radius: 2px;
}

.shop-nav__badge {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 1px 6px;
  margin-left: 4px;
  background: rgba(227, 108, 9, 0.15);
  color: var(--color-orange);
  vertical-align: middle;
}

.shop-nav a {
  display: block;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-xs);
  color: var(--primary);
  padding: 4px 0;
  line-height: 1.2;
}

.shop-nav a:hover,
.shop-nav a.is-active { color: var(--accent); }

.shop-header__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-3);
}

.shop-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex: 0 1 200px;
  min-width: 120px;
  max-width: 175px;
}

.shop-search input {
  border: none;
  padding: 8px 12px;
  flex: 1;
  min-width: 0;
  outline: none;
}

.shop-search button {
  border: none;
  background: var(--gradient-tech);
  color: var(--color-white);
  box-sizing: border-box;
  min-height: var(--btn-height);
  height: var(--btn-height);
  padding: 0 var(--btn-padding-sm-x);
  cursor: pointer;
  font-size: var(--btn-font-size-sm);
  font-weight: 600;
  line-height: 1;
}

.shop-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  box-sizing: border-box;
  min-height: var(--btn-height);
  height: var(--btn-height);
  padding: 0 var(--btn-padding-sm-x);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--primary);
  font-size: var(--text-small);
  font-weight: 600;
}

.shop-cart__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-orange);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  min-height: var(--btn-height);
  height: var(--btn-height);
  padding: 0 var(--btn-padding-sm-x);
  cursor: pointer;
  font-size: var(--btn-font-size-sm);
  font-weight: 600;
  line-height: 1;
  color: var(--primary);
}

.shop-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--shop-z-overlay);
  background: rgba(11, 36, 59, 0.5);
}

.shop-mobile-nav.is-open { display: block; }

.shop-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--color-white);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-out);
}

.shop-mobile-nav.is-open .shop-mobile-nav__panel {
  transform: translateX(0);
}

.shop-mobile-nav__close {
  border: none;
  background: transparent;
  font-size: var(--text-h3);
  cursor: pointer;
  margin-bottom: var(--space-4);
}

.shop-mobile-nav__search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.shop-mobile-nav__search input {
  border: none;
  padding: 10px 12px;
  flex: 1;
  min-width: 0;
  outline: none;
}

.shop-mobile-nav__search button {
  border: none;
  background: var(--gradient-tech);
  color: var(--color-white);
  box-sizing: border-box;
  min-height: var(--btn-height);
  height: var(--btn-height);
  padding: 0 var(--btn-padding-x);
  cursor: pointer;
  font-size: var(--btn-font-size-sm);
  font-weight: 600;
  line-height: 1;
}

.shop-mobile-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.shop-mobile-nav__list a {
  display: block;
  padding: 10px 0;
  min-height: 44px;
  line-height: 1.4;
  text-decoration: none;
  font-weight: 600;
  color: var(--primary);
}

.shop-cart__label {
  display: inline;
}

.shop-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.shop-breadcrumb {
  padding: var(--space-4) 0;
  font-size: var(--text-small);
  color: var(--muted-foreground);
}

.shop-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

.shop-breadcrumb li + li::before {
  content: "/";
  margin-right: var(--space-2);
  color: var(--color-silver);
}

.shop-breadcrumb a {
  color: var(--color-blue);
  text-decoration: none;
}

.shop-breadcrumb a:hover { color: var(--color-cyan); }

.shop-footer {
  margin-top: var(--space-8);
  background: var(--surface-solid, var(--color-white));
  color: var(--foreground);
  padding: var(--space-7) 0 var(--space-6);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(11, 36, 59, 0.06);
}

.shop-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: var(--space-5);
}

.shop-footer__brand .shop-footer__logo {
  display: inline-block;
  width: auto;
  height: auto;
  max-height: 40px;
  max-width: 122px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 12px;
  vertical-align: top;
}

.shop-footer__hotline {
  margin-bottom: var(--space-2);
}

.shop-topbar__right a + a::before {
  content: none;
}

.shop-footer h4 {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  margin-bottom: var(--space-3);
  color: var(--heading-mecha, var(--primary));
}

.shop-footer p,
.shop-footer li {
  font-size: var(--text-small);
  color: var(--muted-foreground);
  line-height: 1.7;
}

.shop-footer ul { list-style: none; }

.shop-footer a {
  color: var(--color-blue);
  text-decoration: none;
}

.shop-footer a:hover {
  color: var(--color-cyan);
  text-decoration: underline;
}

.shop-footer__bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  text-align: center;
}

.shop-toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--gutter);
  z-index: var(--shop-z-toast);
  min-width: 280px;
  max-width: 315px;
  padding: var(--space-4) var(--space-5);
  background: var(--primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: var(--text-small);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--duration-normal), transform var(--duration-normal);
}

.shop-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.shop-toast strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--color-gold);
}

@media (max-width: 1200px) {
  .shop-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .shop-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 992px) {
  .shop-topbar .shop-topbar__right { display: none; }
  .shop-topbar .shop-topbar__left {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .shop-topbar .shop-container {
    justify-content: center;
  }
  .shop-nav-wrap, .shop-search { display: none; }
  .shop-menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; height: auto; }
  .shop-cart {
    min-height: 44px;
    height: auto;
    padding: 0 var(--btn-padding-sm-x);
    font-size: var(--text-xs);
    gap: var(--space-1);
  }
  .shop-cart__label {
    display: inline;
    white-space: nowrap;
  }
  .shop-footer__grid { grid-template-columns: 1fr 1fr; }
  .shop-footer__brand { grid-column: auto; }
  .shop-toast {
    left: var(--gutter);
    right: var(--gutter);
    bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 14px;
  }
  .shop-footer__grid { grid-template-columns: 1fr; }
  .shop-header__inner { gap: var(--space-2); }
  .shop-header__logo img {
    max-height: 32px;
    max-width: 96px;
  }
}