/* =========================================================
   信科通 · Design system
   ========================================================= */
:root {
  --ink: #071c25;
  --ink-2: #102f38;
  --ink-3: #1b424b;
  --muted: #5d7076;
  --muted-2: #839398;
  --line: #dfe8e6;
  --line-soft: #edf2f0;
  --surface: #ffffff;
  --surface-2: #f4f8f6;
  --bg: #f6f8f7;
  --brand: #0d9488;
  --brand-deep: #0b5f58;
  --brand-soft: #d9f7f0;
  --mint: #2dd4bf;
  --mint-bright: #5eead4;
  --amber: #f5a524;
  --amber-soft: #fff4dd;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --danger: #d94b45;
  --danger-soft: #fdeceb;
  --shadow-sm: 0 2px 8px rgba(7, 28, 37, 0.05);
  --shadow-md: 0 14px 34px rgba(7, 28, 37, 0.08);
  --shadow-lg: 0 28px 70px rgba(7, 28, 37, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1400px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--mint);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(13, 148, 136, 0.35);
  outline-offset: 2px;
}

.icon {
  width: 19px;
  height: 19px;
  flex: none;
  display: inline-block;
  vertical-align: -3px;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.site-main {
  min-height: 60vh;
}

.page-enter {
  animation: pageEnter 0.42s ease both;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* route loading */
body.is-routing::before {
  content: "";
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  height: 2px;
  width: 38%;
  background: linear-gradient(90deg, transparent, var(--mint), var(--amber));
  animation: routeBar 1.1s ease-in-out infinite;
}

@keyframes routeBar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}

/* =========================================================
   Typography helpers
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow .icon {
  width: 15px;
  height: 15px;
}

.eyebrow-light {
  color: var(--mint-bright);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-deep);
  font-size: 13.5px;
  font-weight: 700;
  transition: gap 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  gap: 11px;
  color: var(--brand);
}

.text-link .icon {
  width: 16px;
  height: 16px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.22);
}

.btn-primary:hover {
  background: #0b7f75;
  border-color: #0b7f75;
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: #f2fbf8;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.btn-dark-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-dark-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn-add-cart {
  flex: 1;
}

.share-icon-btn {
  width: 46px;
  padding: 0;
  flex: none;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.icon-button:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #f4fcf9;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(223, 232, 230, 0.8);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: var(--max);
  height: 78px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(7, 28, 37, 0.16);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-link .icon {
  width: 17px;
  height: 17px;
}

.nav-link:hover,
.nav-link.is-active {
  background: #eef9f6;
  color: var(--brand-deep);
}

.header-search {
  flex: 1;
  max-width: 360px;
  margin-left: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.cart-button {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 20px;
  background: var(--amber);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

.header-login {
  min-height: 40px;
}

.user-menu {
  position: relative;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 9px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.user-chip:hover {
  border-color: #b9d9d3;
  background: #fbfefd;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand), #0f766e);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}

.avatar-lg {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 15px;
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.user-meta strong {
  font-size: 12.5px;
  font-weight: 700;
}

.user-meta small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.user-chevron {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
  transition: transform 0.18s ease;
}

.user-menu.is-open .user-chevron {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 248px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.user-menu.is-open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.user-dropdown-head {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 10px 10px 13px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--line-soft);
}

.user-dropdown-head div {
  display: flex;
  flex-direction: column;
}

.user-dropdown-head strong {
  font-size: 13px;
}

.user-dropdown-head small {
  color: var(--muted-2);
  font-size: 11px;
}

.dropdown-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink-2);
  font-size: 13px;
  text-align: left;
}

.dropdown-link:hover {
  background: var(--surface-2);
  color: var(--brand-deep);
}

.dropdown-link .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.dropdown-danger {
  color: var(--danger);
}

.dropdown-danger .icon {
  color: var(--danger);
}

.mobile-toggle,
.mobile-drawer {
  display: none;
}

/* =========================================================
   Search box
   ========================================================= */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 4px 0 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f3f7f5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.search-box.is-focused {
  border-color: #9ed8cd;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.11);
}

.search-box-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  display: flex;
}

.search-box-icon .icon {
  width: 17px;
  height: 17px;
}

.search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  color: var(--ink);
}

.search-input::placeholder {
  color: #91a09e;
}

.search-input::-webkit-search-cancel-button {
  display: none;
}

.search-submit {
  flex: none;
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.18s ease;
}

.search-submit:hover {
  background: var(--brand-deep);
}

.search-history-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 9px);
  left: 0;
  right: 0;
  min-width: 310px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.search-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.search-history-head button {
  border: 0;
  background: none;
  color: var(--muted-2);
  font-size: 11px;
}

.search-history-head button:hover {
  color: var(--danger);
}

.search-history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.history-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px;
}

.history-chip:hover {
  border-color: #b8ded6;
  background: #eefaf7;
  color: var(--brand-deep);
}

.history-chip .icon {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
}

.search-history-empty {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 2px;
  color: var(--muted-2);
  font-size: 12px;
}

/* =========================================================
   Hero
   ========================================================= */
.home-hero {
  position: relative;
  overflow: visible;
  padding: 72px 0 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(45, 212, 191, 0.14), transparent 36%),
    radial-gradient(circle at 18% 90%, rgba(245, 165, 36, 0.09), transparent 30%),
    linear-gradient(135deg, #06181f 0%, #082a31 55%, #0a3b3b 100%);
  color: #fff;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero-glow-a {
  width: 560px;
  height: 560px;
  right: -140px;
  top: -190px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.2), transparent 68%);
}

.hero-glow-b {
  width: 340px;
  height: 340px;
  left: -120px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(245, 165, 36, 0.12), transparent 68%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  align-items: stretch;
  gap: 40px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 0 36px;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 18px 0 20px;
  font-size: clamp(42px, 4.5vw, 66px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--mint-bright);
}

.hero-sub {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15.5px;
  line-height: 1.8;
}

.hero-search {
  max-width: 620px;
  margin: 30px 0 0;
}

.search-box-hero {
  height: 60px;
  padding-left: 48px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.23);
}

.search-box-hero .search-box-icon {
  left: 18px;
  color: var(--brand);
}

.search-box-hero .search-box-icon .icon {
  width: 21px;
  height: 21px;
}

.search-box-hero .search-input {
  font-size: 14.5px;
  color: var(--ink);
}

.search-box-hero .search-submit {
  height: 46px;
  padding: 0 24px;
  border-radius: 11px;
  background: var(--brand);
  font-size: 13px;
}

.search-box-hero .search-submit:hover {
  background: var(--brand-deep);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 34px;
}

.hero-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 82px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stat strong {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-stat span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.stat-unit {
  margin-left: 2px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions .btn {
  min-height: 46px;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.hero-carousel {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 620px;
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(5, 24, 30, 0.55);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.hero-carousel.is-empty {
  min-height: 620px;
}

.hero-carousel-viewport {
  position: relative;
  flex: 1;
  min-height: 480px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.hero-slide-media {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #0c2b30;
  flex: 1;
  min-height: 0;
}

.hero-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(7, 28, 37, 0.7);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.hero-slide-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(45, 212, 191, 0.22), transparent 45%),
    linear-gradient(160deg, #0f3a40, #071c25);
}

.hero-slide-placeholder-copy {
  max-width: 260px;
  text-align: center;
  color: #fff;
  padding: 20px;
}

.hero-slide-placeholder-copy strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.hero-slide-placeholder-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.5;
}

.hero-slide-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 10px;
  background: linear-gradient(180deg, rgba(4, 22, 28, 0.2), rgba(4, 22, 28, 0.72));
}

.hero-slide-body div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.frame-code {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.hero-slide-body strong {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.hero-slide-body p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.frame-arrow {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.frame-arrow .icon {
  width: 16px;
  height: 16px;
}

.hero-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 18px 16px;
  background: rgba(4, 22, 28, 0.72);
}

.hero-nav {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hero-nav:hover {
  background: rgba(45, 212, 191, 0.18);
  border-color: rgba(45, 212, 191, 0.45);
}

.hero-nav .icon {
  width: 16px;
  height: 16px;
}

.hero-dots {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  padding: 0;
}

.hero-dot.is-active {
  width: 18px;
  border-radius: 999px;
  background: var(--mint);
}

.floating-note {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(8, 36, 41, 0.82);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.floating-note span:last-child {
  display: flex;
  flex-direction: column;
}

.floating-note strong {
  font-size: 11.5px;
}

.floating-note small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
}

.floating-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(45, 212, 191, 0.16);
  color: var(--mint);
  display: grid;
  place-items: center;
}

.floating-icon .icon {
  width: 16px;
  height: 16px;
}

.floating-icon-amber {
  background: rgba(245, 165, 36, 0.15);
  color: #fbbf24;
}

.floating-note-price {
  top: 22px;
  left: 22px;
  animation: floatY 6s ease-in-out infinite;
}

.floating-note-share {
  right: 22px;
  bottom: 118px;
  animation: floatY 7s ease-in-out infinite reverse;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-orbit {
  display: none;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.hero-orbit::before {
  inset: 55px;
}

.hero-orbit::after {
  inset: 120px;
}

.category-ribbon {
  position: relative;
  z-index: 3;
  max-width: var(--max);
  margin: 56px auto -52px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--brand);
}

.category-card[data-category="hardware"]::before {
  background: var(--blue);
}

.category-card[data-category="service"]::before {
  background: var(--amber);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.18);
}

.category-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #e9f9f5;
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  flex: none;
}

.category-card[data-category="hardware"] .category-card-icon {
  background: #eaf1ff;
  color: #1d4ed8;
}

.category-card[data-category="service"] .category-card-icon {
  background: #fff5e1;
  color: #a85d00;
}

.category-card-icon .icon {
  width: 24px;
  height: 24px;
}

.category-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.category-card-body strong {
  font-size: 18px;
  font-weight: 800;
}

.category-card-body small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-card-count {
  margin-left: auto;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.category-card-count small {
  margin-left: 2px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 500;
}

.category-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.category-card-arrow .icon {
  width: 14px;
  height: 14px;
}

.category-card:hover .category-card-arrow {
  background: var(--ink);
  color: #fff;
}

/* =========================================================
   Catalog
   ========================================================= */
.compact-hero {
  position: relative;
  overflow: hidden;
  padding: 38px 0 34px;
  background:
    radial-gradient(circle at 85% 10%, rgba(45, 212, 191, 0.16), transparent 32%),
    linear-gradient(125deg, #06181f, #0a3437);
  color: #fff;
}

.compact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to right, #000, transparent 92%);
  pointer-events: none;
}

.compact-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
}

.compact-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 9.5px;
}

.compact-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
}

.compact-breadcrumb a:hover {
  color: var(--mint);
}

.compact-breadcrumb .icon {
  width: 11px;
  height: 11px;
}

.compact-hero h1 {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.compact-hero p {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.compact-hero-side {
  width: min(430px, 44%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: none;
}

.search-box-compact {
  width: 100%;
  height: 46px;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.search-box-compact .search-submit {
  height: 36px;
}

.compact-hero-side .btn {
  min-height: 34px;
}

.catalog-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px 32px 96px;
}

.catalog-wrap.catalog-wrap-compact {
  padding-top: 32px;
}

.catalog-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.catalog-intro h2 {
  margin: 12px 0 7px;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.catalog-intro p {
  color: var(--muted);
  font-size: 14px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease;
}

.filter-tab .icon {
  width: 16px;
  height: 16px;
}

.filter-tab span {
  margin-left: 2px;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 500;
}

.filter-tab:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.filter-tab.is-active {
  background: var(--ink);
  color: #fff;
}

.filter-tab.is-active span {
  color: rgba(255, 255, 255, 0.55);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 32px 0 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.select-wrap > .icon:first-child {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  color: var(--muted-2);
  pointer-events: none;
}

.select-wrap select {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  appearance: none;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  right: 9px;
  width: 13px;
  height: 13px;
  color: var(--muted-2);
  pointer-events: none;
}

.subfilter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.subfilter-label {
  margin-right: 2px;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.chip span {
  color: var(--muted-2);
  font-size: 10px;
}

.chip:hover,
.chip.is-active {
  border-color: #b5e4db;
  background: #effbf8;
  color: var(--brand-deep);
}

.active-filter-row {
  margin-top: 13px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px 7px 12px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 600;
}

.active-filter .icon {
  width: 13px;
  height: 13px;
}

.result-meta {
  margin-top: 30px;
  color: var(--muted);
  font-size: 12.5px;
}

.result-meta strong {
  color: var(--ink);
}

.catalog-section {
  margin-top: 60px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #e8f8f4;
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  flex: none;
}

.section-icon[data-category="hardware"] {
  background: #ebf2ff;
  color: #1d4ed8;
}

.section-icon[data-category="service"] {
  background: #fff4df;
  color: #a85d00;
}

.section-icon .icon {
  width: 26px;
  height: 26px;
}

.section-kicker {
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.section-heading h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-heading h2 span {
  margin-left: 6px;
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.section-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}

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

.product-grid-all {
  margin-top: 22px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #c9dfda;
  box-shadow: 0 24px 50px rgba(7, 28, 37, 0.1);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b2d32;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.75, 0.3, 1);
}

.product-card:hover .card-media img {
  transform: scale(1.04);
}

.card-badges {
  position: absolute;
  top: 13px;
  left: 13px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.badge-own {
  background: var(--mint);
  color: var(--ink);
}

.badge-supplier {
  background: var(--amber);
  color: var(--ink);
}

.badge-category {
  background: rgba(7, 28, 37, 0.58);
  color: #fff;
  backdrop-filter: blur(8px);
}

.badge-price {
  background: rgba(45, 212, 191, 0.14);
  color: var(--mint-bright);
  border: 1px solid rgba(45, 212, 191, 0.22);
}

.badge-featured {
  background: #fff0d3;
  color: #9a5a05;
}

.badge-secondary-promote {
  background: #e8f1ff;
  color: #1d4f91;
}

.admin-table tr.is-secondary-row td {
  background: #f7faff;
}

.promote-select-wrap select,
.promote-field select {
  min-width: 132px;
  padding: 7px 10px;
  border: 1px solid var(--border, #d7e0de);
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.form-checks-promote {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.promote-field {
  margin: 0;
  min-width: 220px;
}

.card-view {
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(6px);
  backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.card-view .icon {
  width: 16px;
  height: 16px;
}

.product-card:hover .card-view {
  opacity: 1;
  transform: none;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 17px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 16px;
}

.card-code {
  color: var(--brand-deep);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card-sub {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 9.5px;
}

.card-title {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.015em;
}

.card-title a:hover {
  color: var(--brand-deep);
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.keyword {
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.card-brief {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
  min-height: 41px;
}

.card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--ink);
}

.price-currency {
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 700;
}

.price-tag strong {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.price-tag small {
  margin-left: 4px;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 500;
}

.price-tag-sm strong {
  font-size: 18px;
}

.price-muted {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
}

.price-muted .icon {
  width: 13px;
  height: 13px;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.detail-link .icon {
  width: 13px;
  height: 13px;
}

.product-card:hover .detail-link {
  color: var(--brand-deep);
}

.catalog-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 72px;
  padding: 38px 42px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 18%, rgba(45, 212, 191, 0.18), transparent 32%),
    linear-gradient(120deg, #071c25, #0b3436);
  color: #fff;
}

.catalog-cta::after {
  content: "";
  position: absolute;
  right: 30%;
  top: -80px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.catalog-cta h3 {
  margin: 8px 0 5px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.catalog-cta p {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.catalog-cta-actions {
  display: flex;
  gap: 10px;
  flex: none;
}

/* =========================================================
   Empty / loading
   ========================================================= */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 24px;
  border: 1px dashed #d5e2df;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.empty-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 15px;
  border-radius: 18px;
  background: #eaf8f4;
  color: var(--brand);
  display: grid;
  place-items: center;
}

.empty-icon .icon {
  width: 28px;
  height: 28px;
}

.empty-state h3 {
  font-size: 18px;
}

.empty-state p {
  max-width: 430px;
  margin: 7px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.loading-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 80px;
  color: var(--muted);
  font-size: 13px;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(13, 148, 136, 0.2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-light {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   Product detail
   ========================================================= */
.product-page {
  padding-top: 34px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 26px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand-deep);
}

.breadcrumb .icon {
  width: 12px;
  height: 12px;
}

.breadcrumb span {
  color: var(--ink-2);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: start;
  gap: 52px;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.55;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--ink);
  box-shadow: var(--shadow-md);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(7, 28, 37, 0.62);
  color: #fff;
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.gallery-zoom .icon {
  width: 13px;
  height: 13px;
}

.gallery-counter {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(7, 28, 37, 0.55);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.6;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 11px;
  background: var(--surface-2);
  opacity: 0.72;
  transition: opacity 0.18s ease, border-color 0.18s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb.is-active {
  border-color: var(--brand);
  opacity: 1;
}

.gallery-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 10px;
}

.gallery-note .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
}

.product-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 7px;
  background: #eaf8f4;
  color: var(--brand-deep);
  font-size: 10.5px;
  font-weight: 700;
}

.category-pill[data-category="hardware"] {
  background: #ebf2ff;
  color: #1d4ed8;
}

.category-pill[data-category="service"] {
  background: #fff4df;
  color: #9a5a05;
}

.category-pill .icon {
  width: 14px;
  height: 14px;
}

.product-title {
  font-size: clamp(34px, 3.5vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.product-brief {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.summary-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.price-card {
  margin-top: 22px;
  padding: 22px;
  border-radius: 19px;
  background:
    radial-gradient(circle at 92% 0%, rgba(45, 212, 191, 0.18), transparent 34%),
    linear-gradient(135deg, #071c25, #0c3639);
  color: #fff;
}

.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.price-card-head small {
  color: rgba(255, 255, 255, 0.35);
}

.price-big {
  margin: 9px 0 16px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.price-big span {
  margin-right: 4px;
  color: var(--mint);
  font-size: 20px;
  font-weight: 700;
}

.price-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.price-breakdown div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px;
  background: rgba(7, 28, 37, 0.45);
}

.price-breakdown span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
}

.price-breakdown strong {
  font-size: 12px;
  font-weight: 700;
}

.detail-lock-section .detail-lock-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 28px 24px;
  border: 1px dashed var(--line, #d7e0de);
  border-radius: 18px;
  background: #f7fbfa;
}

.detail-lock-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e8f6f2;
  color: var(--brand, #0f8f7d);
  display: grid;
  place-items: center;
  flex: none;
}

.detail-lock-icon .icon {
  width: 20px;
  height: 20px;
}

.detail-lock-card h2 {
  margin: 0;
  font-size: 18px;
}

.detail-lock-card p {
  margin: 6px 0 0;
  color: var(--muted, #667873);
  font-size: 13px;
  line-height: 1.6;
}

.detail-lock-card .btn {
  margin-left: auto;
}

.price-lock-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 19px;
  border: 1px solid #eadcc1;
  border-radius: 16px;
  background: #fffbf1;
}

.price-lock-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f8ecd4;
  color: #a85d00;
  display: grid;
  place-items: center;
  flex: none;
}

.price-lock-card > div {
  flex: 1;
  min-width: 190px;
}

.price-lock-card h3 {
  font-size: 13.5px;
}

.price-lock-card p {
  margin-top: 3px;
  color: #7a6a52;
  font-size: 10.5px;
  line-height: 1.55;
}

.purchase-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.qty-control {
  display: flex;
  align-items: center;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.qty-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.qty-btn .icon {
  width: 15px;
  height: 15px;
}

.qty-input {
  width: 44px;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}

.product-meta div {
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.product-meta dt {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.product-meta dd {
  margin: 3px 0 0;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

.product-meta dd small {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 400;
}

.summary-share-hint {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #eefaf6;
  color: #3b625b;
  font-size: 10px;
}

.summary-share-hint .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

.product-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 52px;
  margin-top: 72px;
}

.info-section {
  padding-bottom: 46px;
  margin-bottom: 46px;
  border-bottom: 1px solid var(--line);
}

.info-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.info-section h2 {
  margin: 10px 0 16px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.info-lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-line;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.overview-stats div {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.overview-stats strong {
  font-size: 15px;
  font-weight: 800;
}

.overview-stats span {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.feature-item {
  display: flex;
  gap: 11px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.feature-index {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.8;
}

.feature-item p {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.65;
}

.section-inline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.section-inline-head .muted {
  font-size: 10.5px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.asset-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink);
  text-align: left;
}

.asset-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.asset-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 10px 8px;
  background: linear-gradient(transparent, rgba(7, 28, 37, 0.84));
  color: #fff;
}

.asset-card strong {
  font-size: 9px;
}

.asset-card small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
}

.asset-card:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.asset-video-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 600;
}

.asset-video-link.is-muted {
  color: var(--muted-2);
}

.asset-video-link .icon {
  width: 16px;
  height: 16px;
}

.product-content-side {
  position: sticky;
  top: 100px;
}

.side-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.side-card + .side-card {
  margin-top: 12px;
}

.side-card h3 {
  margin: 7px 0 12px;
  font-size: 19px;
  font-weight: 800;
}

.check-list li {
  display: flex;
  gap: 7px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-list .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--brand);
}

.side-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.side-contact > span {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eaf8f4;
  color: var(--brand-deep);
  display: grid;
  place-items: center;
}

.side-contact > span .icon {
  width: 16px;
  height: 16px;
}

.side-contact div {
  display: flex;
  flex-direction: column;
}

.side-contact strong {
  font-size: 13px;
}

.side-contact small {
  color: var(--muted-2);
  font-size: 9px;
}

.side-card-dark {
  border-color: transparent;
  background: linear-gradient(150deg, #071c25, #0b3a39);
  color: #fff;
}

.side-card-dark h3 {
  font-size: 20px;
}

.side-card-dark p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10.5px;
  line-height: 1.7;
}

.related-section {
  margin-top: 78px;
}

/* =========================================================
   Cart
   ========================================================= */
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.page-heading h1 {
  margin: 12px 0 7px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.page-heading p {
  color: var(--muted);
  font-size: 13.5px;
}

.cart-page,
.orders-page,
.permission-page {
  padding-top: 64px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: start;
  gap: 26px;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.cart-thumb {
  width: 148px;
  flex: none;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink);
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
}

.cart-item-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.cart-item-top h2 {
  margin-top: 5px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.cart-remove {
  width: 34px;
  height: 34px;
  border-color: transparent;
  color: var(--muted-2);
}

.cart-remove:hover {
  border-color: #f3cfcc;
  background: var(--danger-soft);
  color: var(--danger);
}

.cart-item-brief {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
}

.cart-qty {
  display: flex;
  align-items: center;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

.cart-qty button {
  width: 32px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.cart-qty button:hover {
  background: var(--surface-2);
}

.cart-qty button .icon {
  width: 13px;
  height: 13px;
}

.cart-qty span {
  width: 30px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.cart-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.cart-price span {
  color: var(--muted-2);
  font-size: 9px;
}

.cart-price strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cart-summary {
  position: sticky;
  top: 100px;
}

.summary-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.summary-card h2 {
  margin: 7px 0 18px;
  font-size: 22px;
  font-weight: 800;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
}

.summary-row strong {
  color: var(--ink);
  font-weight: 700;
}

.summary-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 9px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.summary-total span {
  font-size: 13px;
  font-weight: 700;
}

.summary-total strong {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.checkout-form {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-section-title {
  display: block;
  margin-bottom: 10px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-field > span:first-child {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfdfc;
  outline: 0;
  font-size: 12.5px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 74px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: #9ed8cd;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.form-error {
  margin: 9px 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11px;
}

.checkout-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.5;
}

.checkout-note .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

.permission-card {
  max-width: 640px;
  margin: 50px auto;
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.permission-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: #fff4df;
  color: #a85d00;
  display: grid;
  place-items: center;
}

.permission-icon .icon {
  width: 28px;
  height: 28px;
}

.permission-card h1 {
  margin: 12px 0 10px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.permission-card p {
  max-width: 480px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.permission-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.permission-meta {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 10px;
}

/* =========================================================
   Orders
   ========================================================= */
.success-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
  padding: 18px 22px;
  border: 1px solid #bce8de;
  border-radius: 15px;
  background: linear-gradient(110deg, #ecfcf7, #f8fffd);
}

.success-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
}

.success-banner-icon .icon {
  width: 20px;
  height: 20px;
}

.success-banner strong {
  font-size: 14px;
}

.success-banner p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.success-banner-mark {
  margin-left: auto;
  color: #92b9b0;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  overflow: hidden;
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfdfc;
}

.order-head-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.order-no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.order-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 10px;
}

.order-date .icon {
  width: 13px;
  height: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-pending {
  background: #fff4dd;
  color: #a85d00;
}

.status-confirmed {
  background: #e8f6ff;
  color: #17658f;
}

.status-completed {
  background: #e9f9f3;
  color: #0a7a64;
}

.status-cancelled {
  background: #f4f1ef;
  color: #8b7f77;
}

.order-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 24px;
  padding: 17px 20px;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}

.order-item:last-child {
  border-bottom: 0;
}

.order-item-main {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.order-item-code {
  color: var(--brand-deep);
  font-family: var(--font-mono);
  font-size: 9px;
}

.order-item-main strong {
  font-size: 12.5px;
  font-weight: 600;
}

.order-item-qty {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 10px;
}

.order-item-price {
  min-width: 86px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
}

.order-side {
  padding-left: 22px;
  border-left: 1px solid var(--line-soft);
}

.order-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.order-total span {
  color: var(--muted-2);
  font-size: 9px;
}

.order-total strong {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.order-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}

.order-contact span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.order-contact .icon {
  width: 12px;
  height: 12px;
}

.order-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 20px;
  border-top: 1px solid var(--line-soft);
  background: #fbfdfc;
  color: var(--muted);
  font-size: 10px;
}

.order-note .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

/* =========================================================
   Login
   ========================================================= */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(520px, 0.96fr);
  background: #f7faf8;
}

.login-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 44px 54px;
  background:
    radial-gradient(circle at 78% 24%, rgba(45, 212, 191, 0.18), transparent 34%),
    radial-gradient(circle at 8% 96%, rgba(245, 165, 36, 0.12), transparent 26%),
    linear-gradient(140deg, #06181f, #083035 58%, #0a3a37);
  color: #fff;
}

.login-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 80%);
}

.login-visual-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  bottom: -120px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.login-visual-glow::before,
.login-visual-glow::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.login-visual-glow::before {
  inset: 50px;
}

.login-visual-glow::after {
  inset: 110px;
}

.login-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  align-self: flex-start;
}

.login-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.login-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.login-brand strong {
  font-size: 18px;
  font-weight: 800;
}

.login-brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.login-visual-copy {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: auto 0;
  padding: 48px 0;
}

.login-visual-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(44px, 4.6vw, 66px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.05em;
}

.login-visual-copy h1 em {
  font-style: normal;
  color: var(--mint-bright);
}

.login-visual-copy > p {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.8;
}

.login-category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 30px;
}

.login-category {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.login-category-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(45, 212, 191, 0.11);
  color: var(--mint);
  display: grid;
  place-items: center;
  flex: none;
}

.login-category[data-category="hardware"] .login-category-icon {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
}

.login-category[data-category="service"] .login-category-icon {
  background: rgba(245, 165, 36, 0.12);
  color: #fbbf24;
}

.login-category-icon .icon {
  width: 17px;
  height: 17px;
}

.login-category > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.login-category strong {
  font-size: 12px;
}

.login-category small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 8.5px;
}

.login-category-count {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
  font-size: 10px;
}

.login-visual-foot {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-visual-foot div {
  display: flex;
  flex-direction: column;
}

.login-visual-foot strong {
  font-size: 17px;
  font-weight: 800;
}

.login-visual-foot span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.login-panel {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 34px 50px 26px;
}

.login-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-2);
  font-size: 10px;
}

.login-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
}

.login-back:hover {
  color: var(--brand-deep);
}

.login-back .icon {
  width: 14px;
  height: 14px;
}

.login-help a {
  color: var(--brand-deep);
  font-weight: 600;
}

.login-card {
  width: 100%;
  max-width: 438px;
  margin: auto;
  padding: 12px 0;
}

.login-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.login-card-brand .icon {
  width: 15px;
  height: 15px;
}

.login-card h2 {
  margin: 12px 0 8px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.login-intro {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.login-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--danger);
  border-radius: 0 8px 8px 0;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11.5px;
}

.login-form {
  margin-top: 24px;
}

.login-form .form-field {
  margin-bottom: 14px;
}

.login-form .form-field > span:first-child {
  font-size: 11px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-wrap:focus-within {
  border-color: #9ed8cd;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.1);
}

.input-wrap > .icon {
  width: 18px;
  height: 18px;
  color: var(--muted-2);
  flex: none;
}

.input-wrap input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.input-action {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-2);
  display: grid;
  place-items: center;
}

.input-action:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.input-action .icon {
  width: 16px;
  height: 16px;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 146px;
  gap: 9px;
}

.captcha-box {
  position: relative;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f2f7f6;
  overflow: hidden;
}

.captcha-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.captcha-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 9px;
}

.login-submit {
  height: 50px;
  margin-top: 4px;
  border-radius: 11px;
  font-size: 14px;
}

.demo-accounts {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.demo-head span {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-head small {
  color: var(--muted-2);
  font-size: 8.5px;
}

.demo-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.demo-account {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #fff;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.demo-account:hover {
  border-color: #b8e2d9;
  background: #f5fdfa;
}

.demo-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex: none;
}

.demo-avatar-admin {
  background: #e7f7f3;
  color: var(--brand-deep);
}

.demo-avatar-sales {
  background: #eaf1ff;
  color: #1d4ed8;
}

.demo-avatar-staff {
  background: #fff3dc;
  color: #965a06;
}

.demo-account > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.demo-account strong {
  font-size: 11px;
}

.demo-account small {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
}

.demo-level {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e9f9f3;
  color: #0a7a64;
  font-size: 8px;
  font-weight: 700;
}

.demo-level-muted {
  background: #f4f1e9;
  color: #8a7448;
}

.login-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.5;
}

.login-note .icon {
  width: 12px;
  height: 12px;
  margin-top: 1px;
}

.login-panel-foot {
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 8.5px;
}

/* =========================================================
   Share
   ========================================================= */
.share-page {
  min-height: 100vh;
  background: var(--bg);
}

.share-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 70px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(15px);
}

.share-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.share-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.share-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.share-brand strong {
  font-size: 16px;
  font-weight: 800;
}

.share-brand small {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 6.5px;
  letter-spacing: 0.18em;
}

.share-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.share-secure,
.share-countdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 600;
}

.share-secure {
  padding: 5px 8px;
  border-radius: 5px;
  background: #eaf9f4;
  color: #0a7a64;
}

.share-countdown {
  color: var(--muted-2);
}

.share-secure .icon,
.share-countdown .icon {
  width: 13px;
  height: 13px;
}

.share-enter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand-deep);
  font-size: 10.5px;
  font-weight: 700;
}

.share-enter .icon {
  width: 14px;
  height: 14px;
}

.share-notice {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 34px;
  border-bottom: 1px solid #ece4cf;
  background: #fffbf1;
}

.share-notice-icon {
  color: #a85d00;
  display: flex;
}

.share-notice-icon .icon {
  width: 17px;
  height: 17px;
}

.share-notice p {
  color: #7a6a52;
  font-size: 10.5px;
}

.share-notice p strong {
  margin-right: 6px;
  color: #5e4e37;
}

.share-notice-tag {
  margin-left: auto;
  color: #b09d7f;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.share-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 32px 82px;
  background:
    radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.16), transparent 34%),
    linear-gradient(135deg, #06181f, #083035 60%, #0a3a37);
  color: #fff;
}

.share-hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: linear-gradient(to right, #000, transparent 90%);
}

.share-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 64px;
}

.share-hero-copy h1 {
  margin: 18px 0 16px;
}

.share-security-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.share-security-card::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -90px;
  top: -90px;
  border: 1px solid rgba(94, 234, 212, 0.16);
  border-radius: 50%;
}

.security-card-label {
  color: rgba(255, 255, 255, 0.38);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.security-card-seal {
  width: 54px;
  height: 54px;
  margin: 22px 0 16px;
  border-radius: 16px;
  background: rgba(45, 212, 191, 0.14);
  color: var(--mint);
  display: grid;
  place-items: center;
}

.security-card-seal .icon {
  width: 26px;
  height: 26px;
}

.share-security-card h3 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.share-security-card h3 em {
  font-style: normal;
  color: var(--mint-bright);
}

.share-security-card ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-security-card li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.share-security-card li .icon {
  width: 13px;
  height: 13px;
  color: var(--mint);
}

.security-card-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.security-card-foot span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.share-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.share-hero h1 em {
  font-style: normal;
  color: var(--mint-bright);
}

.share-hero p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  line-height: 1.8;
}

.share-hero-meta {
  display: flex;
  gap: 34px;
  margin-top: 27px;
}

.share-hero-meta div {
  display: flex;
  flex-direction: column;
  padding-left: 13px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.share-hero-meta div:first-child {
  padding-left: 0;
  border-left: 0;
}

.share-hero-meta strong {
  font-size: 21px;
  font-weight: 800;
}

.share-hero-meta span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.share-hero-search {
  max-width: 590px;
  margin-top: 28px;
}

.share-catalog {
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 32px 90px;
}

.share-catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.share-catalog-head h2 {
  margin: 10px 0 5px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.share-catalog-head p {
  color: var(--muted);
  font-size: 12px;
}

.share-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.share-catalog .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.share-contact-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 50px;
  padding: 32px 36px;
  border-radius: 20px;
  background: linear-gradient(120deg, #071c25, #0b3637);
  color: #fff;
}

.share-contact-banner h3 {
  margin: 8px 0 4px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.share-contact-banner p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11.5px;
}

.share-product {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 32px 80px;
}

.share-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  align-items: start;
  gap: 46px;
  margin-top: 10px;
}

.share-gallery-main {
  overflow: hidden;
  aspect-ratio: 1.55;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--ink);
  box-shadow: var(--shadow-md);
}

.share-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-product-summary .product-brief {
  margin-top: 13px;
}

.share-price-lock {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #ece3d2;
  border-radius: 13px;
  background: #fffbf2;
}

.share-price-lock .price-lock-icon {
  width: 34px;
  height: 34px;
}

.share-price-lock strong {
  font-size: 12px;
}

.share-price-lock p {
  margin-top: 2px;
  color: #7a6a52;
  font-size: 10px;
  line-height: 1.55;
}

.share-product-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--line-soft);
}

.share-product-meta div {
  display: flex;
  flex-direction: column;
  padding: 11px 13px;
  background: #fff;
}

.share-product-meta span {
  color: var(--muted-2);
  font-size: 8.5px;
}

.share-product-meta strong {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
}

.share-product-meta strong .icon {
  width: 12px;
  height: 12px;
}

.share-product-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.share-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  margin-top: 52px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.share-info-grid .info-section {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.share-assets {
  margin-top: 20px;
}

.share-footer {
  padding: 28px 32px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.38);
  font-size: 9.5px;
  text-align: center;
  letter-spacing: 0.04em;
}

.share-expired {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 70px);
  padding: 50px 24px;
}

.expired-card {
  width: 100%;
  max-width: 620px;
  padding: 50px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.expired-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: #fff4df;
  color: #a85d00;
  display: grid;
  place-items: center;
}

.expired-icon .icon {
  width: 30px;
  height: 30px;
}

.expired-card h1 {
  margin: 11px 0 9px;
  font-size: 33px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.expired-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.expired-meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 9px;
}

.expired-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.expired-meta .icon {
  width: 12px;
  height: 12px;
}

.expired-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.contact-modal {
  text-align: center;
  padding: 8px 4px;
}

.contact-modal-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: #eaf9f4;
  color: var(--brand);
  display: grid;
  place-items: center;
}

.contact-modal-icon .icon {
  width: 24px;
  height: 24px;
}

.contact-modal h3 {
  font-size: 18px;
}

.contact-modal p {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 11px;
}

.contact-phone {
  display: block;
  padding: 12px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--mint);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-tip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.5;
  text-align: left;
}

.contact-tip .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #06181f;
  color: #fff;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 32px 46px;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 60px;
}

.site-footer .brand-text strong {
  color: #fff;
}

.site-footer .brand-text small {
  color: rgba(255, 255, 255, 0.34);
}

.footer-brand p {
  max-width: 380px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11.5px;
  line-height: 1.8;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.footer-badges span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 8.5px;
}

.footer-badges .icon {
  width: 11px;
  height: 11px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 700;
}

.footer-col a,
.footer-col span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}

.footer-col a:hover {
  color: var(--mint);
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.26);
  font-size: 8.5px;
}

/* =========================================================
   Admin
   ========================================================= */
.admin-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  background: #f3f7f5;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 15px 18px;
  background:
    radial-gradient(circle at 30% 5%, rgba(45, 212, 191, 0.12), transparent 32%),
    #071c25;
  color: #fff;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.admin-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.admin-brand strong {
  font-size: 15px;
  font-weight: 800;
}

.admin-brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.admin-nav-label {
  margin: 22px 10px 7px;
  color: rgba(255, 255, 255, 0.24);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11.5px;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

.admin-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-link.is-active {
  background: rgba(45, 212, 191, 0.12);
  color: var(--mint);
}

.admin-link .icon {
  width: 16px;
  height: 16px;
}

.admin-link em {
  margin-left: auto;
  min-width: 18px;
  height: 17px;
  padding: 0 5px;
  border-radius: 20px;
  background: var(--amber);
  color: var(--ink);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.admin-sidebar-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-user .avatar {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: rgba(45, 212, 191, 0.16);
  color: var(--mint);
}

.admin-user div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-user strong {
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user small {
  color: rgba(255, 255, 255, 0.32);
  font-size: 8px;
}

.admin-logout {
  width: 31px;
  height: 31px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
}

.admin-logout:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.admin-logout .icon {
  width: 15px;
  height: 15px;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.admin-crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.admin-crumb .icon {
  width: 12px;
  height: 12px;
}

.admin-crumb strong {
  color: var(--ink-2);
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-top-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 9px;
}

.admin-top-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #24b47e;
  box-shadow: 0 0 0 3px rgba(36, 180, 126, 0.13);
}

.admin-menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-2);
  place-items: center;
}

.admin-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 34px 60px;
}

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-page-head h1 {
  margin: 8px 0 5px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.admin-page-head p {
  color: var(--muted);
  font-size: 11.5px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(7, 28, 37, 0.03);
}

.stat-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e8f8f4;
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  flex: none;
}

.stat-card-icon .icon {
  width: 18px;
  height: 18px;
}

.stat-icon-amber {
  background: #fff4df;
  color: #a85d00;
}

.stat-icon-blue {
  background: #eaf1ff;
  color: #1d4ed8;
}

.stat-icon-violet {
  background: #f2edff;
  color: #6d43c9;
}

.stat-card > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-card > div > span {
  color: var(--muted-2);
  font-size: 9px;
}

.stat-card strong {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-card strong small {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 500;
}

.stat-card p {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8px;
}

.admin-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.admin-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-section-head h2 {
  font-size: 15px;
  font-weight: 800;
}

.admin-section-head p {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.admin-section-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-admin-list {
  display: grid;
  gap: 14px;
  padding: 16px 20px 20px;
}

.category-admin-card {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fbfcfd;
}

.category-admin-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.category-admin-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.category-admin-subs .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-admin-subs .chip small {
  opacity: 0.55;
  font-size: 10px;
}

.category-sub-row {
  margin-bottom: 10px;
}

.input-with-action {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-with-action input {
  flex: 1;
}

.form-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
}

.form-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.table-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.table-hint .icon {
  width: 12px;
  height: 12px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfdfc;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.admin-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: 10.5px;
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover {
  background: #fbfefd;
}

.admin-table td small {
  display: block;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 400;
}

.admin-table .align-right {
  text-align: right;
}

.table-product {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 200px;
}

.table-thumb {
  width: 44px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--ink);
  flex: none;
}

.table-product div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.table-product strong {
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--brand);
  vertical-align: 1px;
}

.source-dot.supplier {
  background: var(--amber);
}

.price-cell {
  font-weight: 700;
  white-space: nowrap;
}

.price-cell small {
  color: var(--muted-2);
  font-weight: 400;
}

.table-actions {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
}

.table-action {
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-2);
  display: inline-grid;
  place-items: center;
}

.table-action:hover {
  border-color: var(--line);
  background: #f5fbf9;
  color: var(--brand-deep);
}

.table-action .icon {
  width: 14px;
  height: 14px;
}

.table-action-danger:hover {
  border-color: #f3d1ce;
  background: var(--danger-soft);
  color: var(--danger);
}

.order-product-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.order-product-cell span {
  white-space: nowrap;
}

.order-product-cell em {
  color: var(--muted-2);
  font-style: normal;
  font-size: 8.5px;
}

.order-product-cell small {
  color: var(--muted-2);
  font-size: 8px;
}

.order-note-inline {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-select {
  height: 29px;
  padding: 0 24px 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-2);
  font-size: 9px;
  cursor: pointer;
}

.admin-overlay {
  display: none;
}

/* =========================================================
   Modal
   ========================================================= */
.modal-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 18, 24, 0.62);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

.modal {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.28);
  animation: modalIn 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.modal-sm {
  max-width: 450px;
}

.modal-lg {
  max-width: 900px;
}

.modal-image {
  max-width: 1040px;
  background: #071c25;
  border-color: rgba(255, 255, 255, 0.12);
}

.modal-image .modal-head {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-image .modal-head p {
  color: rgba(255, 255, 255, 0.4);
}

.modal-image .modal-close {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 19px 21px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.modal-close {
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.modal-close .icon {
  width: 16px;
  height: 16px;
}

.modal-body {
  padding: 21px;
  overflow-y: auto;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 21px;
  border-top: 1px solid var(--line);
  background: #fbfdfc;
  border-radius: 0 0 20px 20px;
}

.modal-image .modal-body {
  padding: 0;
  overflow: hidden;
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  background: #071c25;
  min-height: min(62vh, 520px);
}

.lightbox-image {
  width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  background: #071c25;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  background: rgba(7, 28, 37, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: background 0.15s ease, transform 0.15s ease;
}

.lightbox-nav:hover {
  background: rgba(16, 185, 160, 0.92);
}

.lightbox-nav .icon {
  width: 20px;
  height: 20px;
}

.lightbox-prev {
  left: 14px;
}

.lightbox-next {
  right: 14px;
}

.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #e8f7f3;
  background: rgba(7, 28, 37, 0.72);
}

.confirm-message {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.share-success {
  text-align: center;
}

.share-success-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 15px;
  background: #e8f8f4;
  color: var(--brand);
  display: grid;
  place-items: center;
}

.share-success-icon .icon {
  width: 24px;
  height: 24px;
}

.share-link-box {
  display: flex;
  gap: 7px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfc;
}

.share-link-box input {
  flex: 1;
  min-width: 0;
  padding: 0 7px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.share-meta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 9px;
}

.share-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.share-meta-row .icon {
  width: 12px;
  height: 12px;
}

.share-tip {
  margin-top: 13px;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
  text-align: left;
}

/* =========================================================
   Product admin form
   ========================================================= */
.product-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-full {
  grid-column: 1 / -1;
}

.field > span {
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
}

.field > span em {
  color: var(--danger);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  outline: 0;
  font-size: 11.5px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
  resize: vertical;
  line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #9ed8cd;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

.field > small {
  color: var(--muted-2);
  font-size: 8.5px;
}

.inline-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-deep);
  font-size: 8.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-checks {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--surface-2);
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 10.5px;
  cursor: pointer;
}

.checkbox input {
  width: 14px;
  height: 14px;
  accent-color: var(--brand);
}

/* =========================================================
   Toast / boot / fatal
   ========================================================= */
#toast-root {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 380px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(7, 28, 37, 0.94);
  color: #fff;
  font-size: 11.5px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(45, 212, 191, 0.16);
  color: var(--mint);
}

.toast-error .toast-icon {
  background: rgba(217, 75, 69, 0.18);
  color: #fca5a5;
}

.toast-info .toast-icon {
  background: rgba(245, 165, 36, 0.17);
  color: #fbbf24;
}

.toast .icon {
  width: 13px;
  height: 13px;
}

.boot-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(circle at 50% 40%, rgba(45, 212, 191, 0.1), transparent 32%),
    var(--ink);
  color: #fff;
}

.boot-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 800;
}

.boot-brand img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
}

.boot-bar {
  width: 170px;
  height: 3px;
  margin-top: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.boot-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 10px;
  background: var(--mint);
  animation: bootBar 1.2s ease-in-out infinite;
}

@keyframes bootBar {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(300%);
  }
}

.boot-screen p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.fatal-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 24px;
  text-align: center;
}

.fatal-page img {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
}

.fatal-page h1 {
  margin: 11px 0 8px;
  font-size: 32px;
  font-weight: 800;
}

.fatal-page p {
  max-width: 440px;
  color: var(--muted);
  font-size: 13px;
}

.fatal-actions {
  display: flex;
  gap: 9px;
  margin-top: 20px;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .header-inner {
    gap: 15px;
    padding: 0 24px;
  }

  .main-nav {
    gap: 1px;
  }

  .nav-link {
    padding: 8px 9px;
    font-size: 12.5px;
  }

  .header-search {
    max-width: 280px;
  }

  .user-meta small {
    display: none;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 28px;
  }

  .hero-visual,
  .hero-carousel,
  .hero-carousel.is-empty {
    min-height: 540px;
  }

  .hero-carousel-viewport {
    min-height: 420px;
  }

  .product-grid {
    gap: 17px;
  }

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

@media (max-width: 1060px) {
  .header-search {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero-copy {
    max-width: 760px;
    padding-bottom: 10px;
  }

  .category-ribbon {
    margin-top: 46px;
  }

  .product-layout,
  .share-product-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-gallery {
    position: static;
    max-width: 680px;
  }

  .product-content-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .product-content-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .share-hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .share-security-card {
    display: none;
  }

  .side-card + .side-card {
    margin-top: 0;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
    max-width: 520px;
  }

  .login-page {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 32px 22px;
  }

  .login-card {
    max-width: 460px;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 252px;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
  }

  .admin-sidebar.is-open {
    transform: none;
  }

  .admin-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(4, 18, 24, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .admin-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .admin-menu-toggle {
    display: grid;
  }

  .admin-topbar {
    padding: 0 22px;
  }

  .admin-content {
    padding: 24px 22px 50px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: 66px;
    padding: 0 18px;
    gap: 10px;
  }

  .mobile-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink-2);
    place-items: center;
    flex: none;
  }

  .mobile-toggle .icon {
    width: 18px;
    height: 18px;
  }

  .main-nav {
    display: none;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .user-meta,
  .user-chevron {
    display: none;
  }

  .user-chip {
    padding: 3px;
    border: 0;
    background: transparent;
  }

  .header-login {
    min-height: 38px;
    padding: 0 12px;
  }

  .site-header.mobile-open .mobile-drawer {
    display: block;
  }

  .mobile-drawer {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    padding: 14px 18px 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 24px 40px rgba(7, 28, 37, 0.12);
  }

  .mobile-drawer-search {
    margin-bottom: 12px;
  }

  .search-box-mobile {
    height: 46px;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
  }

  .mobile-nav-icon {
    width: 35px;
    height: 35px;
    border-radius: 9px;
    background: #eaf8f4;
    color: var(--brand-deep);
    display: grid;
    place-items: center;
    flex: none;
  }

  .mobile-nav-icon .icon {
    width: 17px;
    height: 17px;
  }

  .mobile-nav-link > span:nth-child(2) {
    display: flex;
    flex-direction: column;
  }

  .mobile-nav-link strong {
    font-size: 12px;
  }

  .mobile-nav-link small {
    color: var(--muted-2);
    font-size: 8.5px;
  }

  .mobile-nav-link > .icon {
    margin-left: auto;
    width: 15px;
    height: 15px;
    color: var(--muted-2);
  }

  .mobile-drawer-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .hero-inner,
  .category-ribbon,
  .catalog-wrap,
  .footer-inner,
  .share-catalog,
  .share-product {
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-hero {
    padding-top: 52px;
  }

  .compact-hero {
    padding: 28px 0;
  }

  .compact-hero-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
    padding: 0 18px;
  }

  .compact-hero-side {
    width: 100%;
    align-items: flex-start;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .hero-stats {
    gap: 18px;
  }

  .hero-stat {
    min-width: 66px;
  }

  .hero-stat strong {
    font-size: 21px;
  }

  .category-ribbon {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 34px;
    margin-bottom: -46px;
  }

  .category-card {
    min-height: 82px;
    padding: 14px 16px;
  }

  .category-card-icon {
    width: 42px;
    height: 42px;
  }

  .catalog-wrap {
    padding-top: 86px;
    padding-bottom: 70px;
  }

  .catalog-wrap.catalog-wrap-compact {
    padding-top: 24px;
  }

  .catalog-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .catalog-intro h2 {
    font-size: 30px;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }

  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .filter-tab {
    flex: none;
  }

  .toolbar-right {
    justify-content: space-between;
  }

  .select-wrap {
    flex: 1;
  }

  .product-grid,
  .share-catalog .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .card-body {
    padding: 14px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-brief {
    font-size: 11px;
    min-height: 36px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .section-heading p {
    display: none;
  }

  .catalog-cta,
  .share-contact-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .page-heading h1 {
    font-size: 32px;
  }

  .cart-thumb {
    width: 100px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 42px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }

  .product-title {
    font-size: 36px;
  }

  .product-content-side {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .overview-stats {
    grid-template-columns: 1fr 1fr;
  }

  .asset-grid {
    grid-template-columns: 1fr 1fr;
  }

  .share-topbar {
    padding: 0 18px;
    min-height: 62px;
  }

  .share-secure {
    display: none;
  }

  .share-countdown {
    font-size: 8.5px;
  }

  .share-notice {
    padding: 9px 18px;
  }

  .share-notice-tag {
    display: none;
  }

  .share-hero {
    padding: 54px 18px 60px;
  }

  .share-hero h1 {
    font-size: 42px;
  }

  .share-hero-meta {
    gap: 16px;
  }

  .share-catalog {
    padding-top: 40px;
  }

  .share-filter {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .share-product {
    padding-top: 20px;
  }

  .share-product-actions {
    flex-wrap: wrap;
  }

  .expired-card {
    padding: 32px 24px;
  }

  .expired-card h1 {
    font-size: 27px;
  }

  .expired-actions {
    flex-direction: column;
  }

  .login-panel {
    padding: 24px 22px 20px;
  }

  .login-card h2 {
    font-size: 32px;
  }

  .admin-top-status,
  .admin-crumb span {
    display: none;
  }

  .admin-topbar {
    min-height: 58px;
    padding: 0 14px;
  }

  .admin-content {
    padding: 18px 14px 45px;
  }

  .admin-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    padding: 13px;
  }

  .stat-card strong {
    font-size: 18px;
  }

  .admin-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal {
    max-height: calc(100vh - 20px);
    border-radius: 16px;
  }

  .modal-foot {
    border-radius: 0 0 16px 16px;
  }
}

@media (max-width: 580px) {
  .header-actions .cart-button {
    width: 38px;
    height: 38px;
  }

  .header-login {
    font-size: 12px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-search {
    margin-top: 23px;
  }

  .search-box-hero {
    height: 54px;
  }

  .search-box-hero .search-submit {
    height: 42px;
    padding: 0 15px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .hero-stat {
    padding-left: 10px;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .catalog-intro h2 {
    font-size: 26px;
  }

  .product-grid,
  .share-catalog .product-grid {
    grid-template-columns: 1fr;
  }

  .card-media {
    aspect-ratio: 16 / 9;
  }

  .section-heading {
    flex-direction: column;
    gap: 10px;
  }

  .section-heading .text-link {
    margin-left: 72px;
  }

  .catalog-cta {
    margin-top: 50px;
    padding: 24px;
  }

  .catalog-cta h3 {
    font-size: 22px;
  }

  .catalog-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cart-item {
    gap: 11px;
    padding: 11px;
  }

  .cart-thumb {
    width: 74px;
  }

  .cart-item-top h2 {
    font-size: 14px;
  }

  .cart-item-brief {
    display: none;
  }

  .cart-item-bottom {
    flex-wrap: wrap;
  }

  .summary-card {
    padding: 19px;
  }

  .order-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .order-body {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .order-side {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .order-total {
    align-items: flex-start;
  }

  .success-banner-mark {
    display: none;
  }

  .success-banner {
    align-items: flex-start;
  }

  .gallery-thumbs {
    gap: 6px;
  }

  .product-meta {
    grid-template-columns: 1fr;
  }

  .price-breakdown {
    grid-template-columns: 1fr;
  }

  .price-breakdown div {
    flex-direction: row;
    justify-content: space-between;
  }

  .purchase-box {
    flex-wrap: wrap;
  }

  .qty-control {
    width: 100%;
    justify-content: space-between;
  }

  .qty-input {
    flex: 1;
  }

  .btn-add-cart {
    flex: 1;
  }

  .asset-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 5px;
    padding: 16px 18px 20px;
  }

  .share-topbar-right {
    gap: 10px;
  }

  .share-enter {
    display: none;
  }

  .share-hero h1 {
    font-size: 34px;
  }

  .share-hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .share-notice {
    align-items: flex-start;
  }

  .share-notice p {
    font-size: 9.5px;
  }

  .share-catalog-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-contact-banner {
    padding: 23px;
  }

  .share-contact-banner h3 {
    font-size: 19px;
  }

  .expired-meta {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .captcha-row {
    grid-template-columns: 1fr;
  }

  .captcha-box {
    width: 150px;
  }

  .login-panel-top .login-help {
    display: none;
  }

  .login-card h2 {
    font-size: 29px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-page-head h1 {
    font-size: 27px;
  }

  .admin-menu-toggle {
    display: grid;
  }

  .modal-head,
  .modal-body {
    padding: 16px;
  }

  .modal-foot {
    padding: 12px 16px;
  }

  .share-link-box {
    flex-direction: column;
  }

  .share-link-box input {
    padding: 9px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* price grants + admin notices */
.admin-notice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid #f0c987;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8eb, #fff);
}
.admin-notice-banner strong {
  display: block;
  margin-bottom: 4px;
}
.admin-notice-banner p {
  margin: 0;
  color: var(--muted, #667085);
  font-size: 13px;
}
.admin-nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 18px;
  text-align: center;
}
.grant-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.grant-product-list {
  display: grid;
  gap: 8px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 4px;
}
.grant-product-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--border, #d7e0de);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.grant-product-item:hover,
.grant-product-item.is-highlight {
  border-color: #0f766e;
}
.grant-product-item.is-highlight {
  background: #f0fdfa;
}
.price-lock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.admin-table tr.is-featured-row td {
  background: #f3fbf9;
}
.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.grant-product-item strong {
  display: block;
}
.grant-product-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted, #667085);
}
.grant-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted, #667085);
  padding: 24px 0;
}
.price-note {
  margin: 12px 0 0;
  color: var(--muted, #667085);
  font-size: 13px;
  line-height: 1.5;
}

/* auth tabs + upload */
.login-tabs{display:flex;gap:8px;margin:0 0 18px}
.login-tab{border:1px solid var(--border, #d7e0de);background:#fff;border-radius:999px;padding:8px 16px;cursor:pointer;font:inherit;color:inherit}
.login-tab.is-active{background:#0f766e;border-color:#0f766e;color:#fff}
.upload-row{position:relative;display:flex;align-items:center;gap:12px;margin-bottom:8px;flex-wrap:wrap}
.file-input-hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
  opacity:0;
}
.image-preview-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(112px,1fr));
  gap:10px;
  margin-top:10px;
}
.image-preview-item{
  position:relative;
  margin:0;
  aspect-ratio:1;
  border:1px solid var(--border,#d7e0de);
  border-radius:12px;
  overflow:hidden;
  background:#f3f6f5;
}
.image-preview-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.image-preview-cover{
  position:absolute;
  left:8px;
  top:8px;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(15,118,110,.92);
  color:#fff;
  font-size:11px;
  line-height:1.4;
}
.image-preview-remove{
  position:absolute;
  right:6px;
  top:6px;
  width:26px;
  height:26px;
  border:0;
  border-radius:50%;
  background:rgba(15,23,42,.72);
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.image-preview-remove .icon{width:14px;height:14px}
.image-preview-empty{margin:10px 0 0}
.cover-preview-wrap{
  position:relative;
  margin-top:10px;
  width:min(220px,100%);
  aspect-ratio:1;
  border:1px solid var(--border,#d7e0de);
  border-radius:14px;
  overflow:hidden;
  background:#f3f6f5;
}
.cover-preview{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.video-preview-grid{
  display:grid;
  gap:12px;
  margin-top:10px;
}
.video-preview-item{
  position:relative;
  margin:0;
  border:1px solid var(--border,#d7e0de);
  border-radius:14px;
  overflow:hidden;
  background:#0b1c22;
}
.video-preview,
.product-video-player{
  display:block;
  width:100%;
  max-height:360px;
  background:#0b1c22;
}
.video-preview-empty{margin:10px 0 0}
.product-video-block{display:grid;gap:10px;margin-top:14px}
.product-form input[readonly]{
  background:#f3f6f5;
  color:#334155;
  cursor:default;
}
.price-lock-compact{margin-top:12px}
