/* =========================================================
   VTV SHOP — COMPONENTS
   ========================================================= */

/* -------------------------------- buttons ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast),
    box-shadow var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px -10px rgba(237, 49, 46, 0.9); }
.btn--primary:hover { background: var(--red-600); color: #fff; box-shadow: 0 10px 22px -12px rgba(237, 49, 46, 0.95); }

.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-600); color: #fff; }

.btn--outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); background: #fff; }

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

.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: var(--blue-50); color: var(--blue-600); }

.btn--onDark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.btn--onDark:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: var(--r-xs); }
.btn--block { width: 100%; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
}
.btn-link:hover { gap: 9px; }

/* -------------------------------- badges -------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge--verified { background: var(--green-50); color: var(--green-700); border: 1px solid rgba(16, 217, 17, 0.3); }
.badge--blue { background: var(--blue-50); color: var(--blue); border: 1px solid var(--blue-100); }
.badge--red { background: var(--red-50); color: var(--red-700); border: 1px solid var(--red-100); }
.badge--soft { background: var(--bg-soft); color: var(--body); border: 1px solid var(--line); }
.badge--dark { background: rgba(11, 21, 38, 0.72); color: #fff; backdrop-filter: blur(4px); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------- product card ----------------------------- */
.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
}
.p-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--line-strong);
}
.p-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft-2);
  overflow: hidden;
}
.p-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.p-card:hover .p-card__media img { transform: scale(1.035); }
.p-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  z-index: 2;
}
.p-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 0;
  flex: 1;
}
.p-card__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.p-card__title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.42;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.84em;
}
.p-card__title:hover { color: var(--blue); }
.p-card__supplier {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--body);
  min-width: 0;
}
.p-card__supplier span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-card__supplier svg { width: 13px; height: 13px; color: var(--green-700); flex: none; }
.p-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 2px;
}
.p-card__meta i { font-style: normal; opacity: 0.5; }
.p-card__foot {
  margin-top: auto;
  padding: 12px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--bg-soft-2);
}
.p-card__price { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.p-card__price b { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.p-card__price small { font-size: 11px; color: var(--muted); }
.p-card__price span.contact { font-size: 13px; font-weight: 600; color: var(--blue); }
.p-card__add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--r-xs);
  background: var(--red-50);
  color: var(--red-700);
  border: 1px solid var(--red-100);
  font-size: 12.5px;
  font-weight: 600;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  flex: none;
}
.p-card__add:hover { background: var(--red); color: #fff; border-color: var(--red); }
.p-card__add svg { width: 14px; height: 14px; }
.p-card__add.is-added { background: var(--green-50); color: var(--green-700); border-color: rgba(16, 217, 17, 0.35); }

/* product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* ---------------------------- supplier card ---------------------------- */
.s-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
}
.s-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.s-card__head { display: flex; align-items: flex-start; gap: 12px; }
.s-card__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  flex: none;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue);
  font-weight: 800;
  font-size: 16px;
  border: 1px solid var(--blue-100);
  overflow: hidden;
  letter-spacing: -0.02em;
}
.s-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.s-card__name { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.s-card__industry { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.s-card__desc {
  font-size: 13px;
  line-height: 1.62;
  color: var(--body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.s-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--bg-soft-2);
  margin-top: auto;
}
.s-card__stats b { color: var(--ink); font-weight: 700; }
.s-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------------------------- category card ---------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.cat-card {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft-2);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.cat-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 21, 38, 0.06) 30%, rgba(11, 21, 38, 0.74) 100%);
}
.cat-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  color: #fff;
  z-index: 2;
}
.cat-card__name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.35; }
.cat-card__count { font-size: 11.5px; color: rgba(255, 255, 255, 0.78); margin-top: 2px; }
.cat-card__icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  z-index: 2;
}
.cat-card__icon svg { width: 15px; height: 15px; }

/* ------------------------------ news card ------------------------------ */
.n-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  height: 100%;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.n-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.n-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft-2); }
.n-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.n-card:hover .n-card__media img { transform: scale(1.04); }
.n-card__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.n-card__meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.n-card__title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.n-card__excerpt {
  font-size: 13px;
  color: var(--body);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.n-card__more { margin-top: auto; padding-top: 6px; }

/* ---------------------------- feature cards ---------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.feature {
  padding: 22px 20px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color var(--t), box-shadow var(--t);
}
.feature:hover { border-color: var(--line-strong); box-shadow: var(--sh-sm); }
.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--blue-50);
  color: var(--blue);
}
.feature__icon svg { width: 19px; height: 19px; }
.feature--red .feature__icon { background: var(--red-50); color: var(--red-700); }
.feature--green .feature__icon { background: var(--green-50); color: var(--green-700); }
.feature h3 { font-size: 15px; margin-bottom: 8px; }
.feature p { font-size: 13px; line-height: 1.65; color: var(--body); }

/* -------------------------------- steps -------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.step__no {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { font-size: 14px; margin-bottom: 6px; }
.step p { font-size: 12.5px; line-height: 1.6; color: var(--body); }
.step::after {
  content: '';
  position: absolute;
  top: 33px;
  right: -9px;
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}
.step:last-child::after { display: none; }

/* -------------------------- strategic section -------------------------- */
.strategic {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
}
.strategic__media { position: relative; min-height: 260px; }
.strategic__media img { width: 100%; height: 100%; object-fit: cover; }
.strategic__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 21, 38, 0.1) 40%, rgba(11, 21, 38, 0.96) 100%);
}
.strategic__body { padding: 40px 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.strategic__body h2 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.025em; }
.strategic__body p { margin-top: 12px; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.72); max-width: 46ch; }
.strategic__list { display: grid; gap: 10px; margin-top: 22px; }
.strategic__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.strategic__item:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.strategic__item small { color: rgba(255, 255, 255, 0.55); font-size: 11.5px; }
.strategic__cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------ filter bar ----------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 20px;
}
.filter-bar select,
.filter-bar input[type='search'] {
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.filter-bar select:focus,
.filter-bar input:focus { border-color: var(--blue); box-shadow: var(--ring); }
.filter-bar__grow { flex: 1; min-width: 180px; }
.filter-bar__count { font-size: 13px; color: var(--muted); margin-left: auto; }

.layout-split { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: start; }
.side-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  padding: 16px;
  position: sticky;
  top: calc(var(--header-h) + 60px);
}
.side-panel h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.side-list { display: grid; gap: 2px; }
.side-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--r-xs);
  font-size: 13.5px;
  color: var(--ink-2);
  text-align: left;
  transition: background var(--t-fast), color var(--t-fast);
}
.side-list button:hover { background: var(--bg-soft); color: var(--blue); }
.side-list button.is-active { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.side-list small { color: var(--muted); font-size: 11.5px; }

/* --------------------------------- forms -------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--red); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--blue); box-shadow: var(--ring); }
.field__hint { font-size: 12px; color: var(--muted); }
.field__error { font-size: 12px; color: var(--red-700); font-weight: 500; }
.form-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.check-row input { width: 16px; height: 16px; accent-color: var(--blue); }

/* ------------------------------- panels --------------------------------- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.panel--soft { background: var(--bg-soft); border-color: transparent; }
.panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel__title { font-size: 17px; }

/* ------------------------------ empty state ----------------------------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 54px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: #fff;
}
.empty--soft { background: var(--bg-soft); border-style: solid; border-color: var(--line); }
.empty__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--bg-soft-2);
  color: var(--muted);
  margin-bottom: 4px;
}
.empty__icon svg { width: 24px; height: 24px; }
.empty h3 { font-size: 15.5px; }
.empty p { font-size: 13.5px; color: var(--body); max-width: 46ch; line-height: 1.65; }
.empty .btn { margin-top: 8px; }

/* -------------------------------- skeleton ------------------------------ */
.sk { position: relative; overflow: hidden; background: var(--bg-soft-2); border-radius: var(--r-xs); }
.sk::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: sk-shimmer 1.5s infinite;
}
@keyframes sk-shimmer { 100% { transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
.sk-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}
.sk-card__media { aspect-ratio: 4 / 3; }
.sk-card__body { padding: 14px; display: grid; gap: 9px; }
.sk-line { height: 11px; border-radius: 4px; }
.sk-line--w60 { width: 60%; }
.sk-line--w80 { width: 80%; }
.sk-line--w40 { width: 40%; }

/* -------------------------------- toast --------------------------------- */
.toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(92vw, 360px);
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--sh-lg);
  font-size: 13.5px;
  line-height: 1.5;
  animation: toast-in var(--t) both;
}
.toast svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.toast--ok svg { color: var(--green); }
.toast--err { background: var(--red-700); }
.toast--err svg { color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------ breadcrumb bar -------------------------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar__spacer { margin-left: auto; }

/* ------------------------------ pagination ------------------------------ */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pager button {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.pager button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.pager button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pager button:disabled { opacity: 0.45; cursor: not-allowed; }

/* -------------------------------- tables -------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
table.data th {
  text-align: left;
  padding: 12px 14px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--bg-soft-2); color: var(--ink-2); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td b { color: var(--ink); }
.table-actions { display: flex; gap: 8px; }

/* --------------------------------- tabs --------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs button {
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.tabs button:hover { color: var(--ink); }
.tabs button.is-active { color: var(--ink); border-bottom-color: var(--red); }

/* ------------------------------ product detail -------------------------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.pdp__media {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft-2);
  aspect-ratio: 4 / 3;
}
.pdp__media img { width: 100%; height: 100%; object-fit: cover; }
.pdp__title { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.025em; margin-top: 10px; }
.pdp__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  margin-top: 18px;
}
.pdp__price b { font-size: 24px; color: var(--red-700); letter-spacing: -0.02em; }
.pdp__price small { font-size: 13px; color: var(--muted); }
.spec-list { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.spec-list div {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.pdp__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pdp__supplier {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-top: 18px;
}
.pdp__supplier .s-card__logo { width: 44px; height: 44px; }
.prose { font-size: 14.5px; line-height: 1.78; color: var(--body); }
.prose p + p { margin-top: 14px; }
.article-detail { max-width: 760px; margin-inline: auto; }
.article-detail img.cover { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 26px; }

/* -------------------------------- basket -------------------------------- */
.basket-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.basket-row:last-child { border-bottom: 0; }
.basket-row img { width: 54px; height: 54px; border-radius: var(--r-xs); object-fit: cover; flex: none; }
.basket-row__body { flex: 1; min-width: 0; }
.basket-row__body b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.basket-row__body small { font-size: 12px; color: var(--muted); }
.basket-row button { color: var(--muted); padding: 6px; border-radius: 6px; }
.basket-row button:hover { color: var(--red); background: var(--red-50); }

/* ----------------------------- status pills ----------------------------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: var(--r-full); }
.status--new { background: var(--blue-50); color: var(--blue); }
.status--processing { background: #FFF7E6; color: #A66200; }
.status--quoted { background: var(--green-50); color: var(--green-700); }
.status--closed { background: var(--bg-soft-2); color: var(--muted); }

/* ------------------------------ responsive grids ------------------------ */
/* Utility grids live in CSS (never inline) so breakpoints can override them. */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.split-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-aside { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; gap: 14px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------ responsive ----------------------------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step::after { display: none; }
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .strategic { grid-template-columns: 1fr; }
  .strategic__body { padding: 28px 24px 30px; }
  .strategic__media { min-height: 200px; }
  .strategic__media::after { background: linear-gradient(180deg, rgba(11, 21, 38, 0.1) 40%, rgba(11, 21, 38, 0.96) 100%); }
  .layout-split { grid-template-columns: 1fr; }
  .side-panel { position: static; }
}

@media (max-width: 767px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .p-card__body { padding: 11px 11px 0; gap: 6px; }
  .p-card__foot { padding: 10px 11px 12px; flex-wrap: wrap; }
  .p-card__title { font-size: 13.5px; min-height: 2.84em; }
  .p-card__add { width: 100%; justify-content: center; }
  .panel { padding: 18px; }
  .toast-host { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================================================
   COMMERCE — cart, checkout, order tracking
   (purchase flow components; kept at the end so the marketplace styles above
   stay untouched)
   ===================================================================== */

.page-head--tight { padding-block: 22px 26px; }

.panel--flush { padding: 0; overflow: hidden; }

.input {
  width: 100%;
  height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  background: #fff;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }

/* ------------------------------- cart -------------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.cart-summary { position: sticky; top: 96px; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.btn-link--muted { color: var(--muted); font-size: 12.5px; }
.btn-link--muted:hover { color: var(--red); }

.cart-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line__media {
  width: 76px;
  height: 76px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: none;
}
.cart-line__media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.cart-line__ph { display: grid; place-items: center; }
.cart-line__body { display: grid; gap: 3px; min-width: 0; }
.cart-line__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-line__name:hover { color: var(--blue); }
.cart-line__meta { font-size: 12.5px; color: var(--muted); }
.cart-line__unit-price { font-size: 12.5px; font-weight: 600; color: var(--body); }

.cart-line__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  overflow: hidden;
  background: #fff;
}
.cart-line__qty button { width: 32px; height: 34px; display: grid; place-items: center; color: var(--ink-2); }
.cart-line__qty button:hover { background: var(--bg-soft); color: var(--blue); }
.cart-line__qty svg { width: 14px; height: 14px; }
.cart-line__qty input {
  width: 46px;
  height: 34px;
  border: 0;
  border-inline: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  -moz-appearance: textfield;
}
.cart-line__qty input::-webkit-outer-spin-button,
.cart-line__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-line__total { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; min-width: 92px; text-align: right; }
.cart-line__remove { color: var(--muted); padding: 6px; border-radius: 6px; }
.cart-line__remove:hover { color: var(--red); background: var(--red-50); }
.cart-line__remove svg { width: 16px; height: 16px; }

.cart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.cart-foot__hint { font-size: 12.5px; color: var(--muted); }
.cart-foot__hint--ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--green-700);
}
.cart-foot__hint--ok svg { width: 15px; height: 15px; }

/* ----------------------------- totals list ---------------------------- */
.sum-list { display: grid; gap: 10px; }
.sum-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.sum-list dt { color: var(--muted); }
.sum-list dd { margin: 0; font-weight: 600; color: var(--ink-2); }
.sum-list__total { border-top: 1px dashed var(--line-strong); padding-top: 10px; }
.sum-list__total dt { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.sum-list__total dd { font-size: 18px; font-weight: 800; color: var(--red); }
.sum-list--tight { gap: 7px; margin-top: 12px; }
.sum-list--tight .sum-list__total dd { font-size: 15.5px; }

.sum-notes { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.sum-notes li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.sum-notes svg { width: 15px; height: 15px; color: var(--blue); flex: none; margin-top: 2px; }

/* ----------------------------- checkout ------------------------------- */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.mini-lines { display: grid; gap: 10px; margin-bottom: 16px; max-height: 264px; overflow-y: auto; }
.mini-lines li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.mini-lines__media {
  width: 44px;
  height: 44px;
  border-radius: var(--r-xs);
  overflow: hidden;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  color: var(--muted);
}
.mini-lines__media img { width: 100%; height: 100%; object-fit: contain; padding: 3px; background: #fff; }
.mini-lines__media svg { width: 16px; height: 16px; }
.mini-lines__body b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.mini-lines__body small { font-size: 11.5px; color: var(--muted); }
.mini-lines__total { font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }

.pay-methods { display: grid; gap: 10px; }
.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.pay-option:hover { border-color: var(--blue-100); background: var(--blue-50); }
.pay-option:has(input:checked) { border-color: var(--blue); background: var(--blue-50); box-shadow: var(--ring); }
.pay-option input { margin: 4px 0 0; accent-color: var(--blue); flex: none; }
.pay-option__body b { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pay-option__body b svg { width: 16px; height: 16px; color: var(--blue); }
.pay-option__body small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* ------------------------- success confirmation ----------------------- */
.success { text-align: center; }
.success__icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: var(--green-50);
  color: var(--green-700);
}
.success__icon svg { width: 30px; height: 30px; }
.success__title { font-size: 22px; }
.success__text { margin: 10px auto 0; max-width: 60ch; font-size: 14px; color: var(--body); line-height: 1.7; }
.success__code { letter-spacing: 0.06em; color: var(--ink); }
.success__actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* --------------------------- order tracking --------------------------- */
.order-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  padding: 18px;
  margin-bottom: 14px;
}
.order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.order-card__code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.order-card__code svg { width: 16px; height: 16px; color: var(--blue); }
.order-card__code b { font-size: 14.5px; letter-spacing: 0.05em; color: var(--ink); }
.order-card__total { text-align: right; }
.order-card__total span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.order-card__total b { font-size: 17px; color: var(--red); }

.order-steps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 14px;
}
.order-steps li { display: flex; align-items: center; gap: 7px; flex: 1 1 0; min-width: 118px; font-size: 12px; color: var(--muted); }
.order-steps__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  flex: none;
}
.order-steps__dot svg { width: 12px; height: 12px; }
.order-steps li.is-done { color: var(--ink-2); font-weight: 600; }
.order-steps li.is-done .order-steps__dot { border-color: var(--blue); background: var(--blue); color: #fff; }
.order-steps li.is-current .order-steps__dot { box-shadow: 0 0 0 4px var(--blue-50); }

.order-steps--cancel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--red-50);
  color: var(--red-700);
  font-size: 13px;
  font-weight: 600;
}
.order-steps--cancel svg { width: 16px; height: 16px; flex: none; }

.order-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ------------------------- order status pills ------------------------- */
.status--confirmed { background: var(--blue-50); color: var(--blue); }
.status--shipping { background: #FFF7E6; color: #A66200; }
.status--done { background: var(--green-50); color: var(--green-700); }
.status--cancelled { background: var(--red-50); color: var(--red-700); }

/* --------------------------- product buy box -------------------------- */
.pdp-buy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.qty-picker {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #fff;
}
.qty-picker button { width: 38px; height: 42px; display: grid; place-items: center; color: var(--ink-2); }
.qty-picker button:hover { background: var(--bg-soft); color: var(--blue); }
.qty-picker button svg { width: 15px; height: 15px; }
.qty-picker input {
  width: 58px;
  height: 42px;
  border: 0;
  border-inline: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  -moz-appearance: textfield;
}
.qty-picker input::-webkit-outer-spin-button,
.qty-picker input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ------------------------ header quote basket badge ------------------- */
.topbar__basket { display: inline-flex; align-items: center; gap: 6px; }
.count-dot {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}
.count-dot.is-empty { display: none; }

.p-card__add.is-added {
  background: var(--green-50);
  color: var(--green-700);
  border-color: rgba(16, 217, 17, 0.35);
}

/* ------------------------------- responsive -------------------------- */
@media (max-width: 1023px) {
  .cart-layout,
  .checkout-layout { grid-template-columns: 1fr; gap: 18px; }
  .cart-summary { position: static; }
}

@media (max-width: 767px) {
  .cart-line {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      "media body remove"
      "media qty total";
    row-gap: 10px;
    padding: 14px 16px;
  }
  .cart-line__media { grid-area: media; width: 64px; height: 64px; }
  .cart-line__body { grid-area: body; }
  .cart-line__qty { grid-area: qty; }
  .cart-line__total { grid-area: total; min-width: 0; align-self: center; }
  .cart-line__remove { grid-area: remove; justify-self: end; align-self: start; }
  .cart-head, .cart-foot { padding-inline: 16px; }
  .order-card { padding: 15px; }
  .order-card__total { text-align: left; }
  .order-steps li { min-width: 96px; flex: 1 1 40%; }
  .mini-lines { max-height: none; }
  .pdp-buy .btn { flex: 1 1 auto; justify-content: center; }
}
