:root {
  --color-primary: #1f5eff;
  --color-primary-dark: #1548c7;
  --color-accent: #0f172a;
  --color-bg: #f3f6fb;
  --color-surface: #ffffff;
  --color-surface-muted: #eef2f7;
  --color-border: #d7deea;
  --color-text: #162033;
  --color-text-soft: #60708a;
  --color-success: #1f9d57;
  --color-warning: #c98412;
  --color-danger: #d13f3f;
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --transition: 0.25s ease;
  --font-site: "Montserrat", system-ui, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font-site);
  font-optical-sizing: auto;
  font-weight: 400;
  color: var(--color-text);
  background: linear-gradient(180deg, #f9fbff 0%, var(--color-bg) 100%);
  line-height: 1.6;
}

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

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section {
  padding: 44px 0;
}

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

.section-title h2,
.section-title h1 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.section-title p {
  color: var(--color-text-soft);
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(31, 94, 255, 0.09);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.btn,
.btn-link,
.icon-btn {
  transition: var(--transition);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 94, 255, 0.24);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-accent);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover,
.chip:hover,
.icon-btn:hover,
.pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-dark {
  background: var(--color-accent);
  color: #fff;
}

.btn-light {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.tag,
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--color-surface-muted);
  color: var(--color-text-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.status.in-stock {
  background: rgba(31, 157, 87, 0.12);
  color: var(--color-success);
}

.status.used {
  background: rgba(201, 132, 18, 0.14);
  color: var(--color-warning);
}

.status.new {
  background: rgba(31, 94, 255, 0.1);
  color: var(--color-primary);
}

.card {
  background: var(--color-surface);
  border: 1px solid rgba(215, 222, 234, 0.85);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.info-bar {
  background: var(--color-accent);
  color: #fff;
  padding: 10px 0;
  font-size: 0.93rem;
}

.info-bar-content,
.header-row,
.header-actions,
.footer-top,
.footer-bottom,
.breadcrumbs,
.catalog-toolbar,
.product-summary-meta,
.cart-totals-row,
.order-row,
.cabinet-grid {
  display: flex;
  align-items: center;
}

.info-bar-content,
.footer-top,
.footer-bottom {
  justify-content: space-between;
  gap: 18px;
}

.info-bar-links,
.header-actions,
.footer-nav,
.footer-contacts,
.quick-links,
.product-actions,
.filter-tags,
.stats-grid,
.summary-actions,
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.header-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 251, 0.9);
  border-bottom: 1px solid rgba(215, 222, 234, 0.8);
}

.header-row {
  gap: 18px;
  min-height: 88px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), #5ea1ff);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(31, 94, 255, 0.22);
}

.search-bar,
.hero-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 10px;
}

.search-bar input,
.hero-search input,
.filter-group input,
.filter-group select,
.auth-form input,
.auth-form select,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--color-text);
}

.search-bar input,
.hero-search input {
  border: none;
  padding: 8px 6px;
  font-size: 14px;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.counter-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.burger {
  display: none;
}

.mobile-panel {
  display: none;
  padding-bottom: 18px;
}

.mobile-panel.open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.hero {
  padding: 38px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.hero-panel {
  padding: 38px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0e1728 0%, #173562 58%, #2666ff 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 46%;
  height: 34%;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0));
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-panel h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.04;
  margin-bottom: 16px;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  margin-bottom: 24px;
}

.hero-stats,
.cards-grid,
.categories-grid,
.steps-grid,
.advantages-grid,
.suppliers-grid,
.product-grid,
.spec-grid,
.offer-list,
.related-grid,
.favorites-grid,
.orders-grid,
.address-grid,
.compat-grid,
.review-list,
.products-list,
.supplier-products-grid {
  display: grid;
  gap: 18px;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.hero-stat,
.advantage-card,
.step-card,
.category-card,
.product-card,
.supplier-card,
.summary-card,
.auth-card,
.cart-card,
.cabinet-card,
.order-card,
.review-card,
.info-card,
.delivery-card {
  padding: 22px;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.mini-panel {
  padding: 24px;
  border-radius: 22px;
  background: var(--color-surface);
  border: 1px solid rgba(215, 222, 234, 0.9);
  box-shadow: var(--shadow-sm);
}

.quick-links .chip,
.filter-tags .chip,
.switcher button,
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-soft);
  font-weight: 600;
}

.switcher button.active,
.pagination a.active,
.quick-links .chip.active,
.filter-tags .chip.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.cards-grid,
.categories-grid,
.advantages-grid,
.suppliers-grid,
.related-grid,
.favorites-grid,
.orders-grid,
.address-grid,
.supplier-products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.category-card,
.product-card,
.supplier-card,
.step-card,
.advantage-card,
.summary-card,
.cart-card,
.cabinet-card,
.order-card,
.review-card,
.info-card,
.delivery-card {
  background: var(--color-surface);
  border: 1px solid rgba(215, 222, 234, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.category-card:hover,
.product-card:hover,
.supplier-card:hover,
.order-card:hover,
.review-card:hover,
.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: rgba(31, 94, 255, 0.1);
  color: var(--color-primary);
  margin-bottom: 18px;
}

.product-card img,
.favorite-item img,
.cart-item img,
.offer-item img,
.supplier-product-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--color-surface-muted);
  margin-bottom: 16px;
}

.product-card h3,
.supplier-card h3,
.favorite-item h3,
.cart-item h3,
.offer-item h3,
.supplier-product-row h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.product-meta,
.supplier-meta,
.order-meta,
.cart-meta,
.favorite-meta {
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.price-row,
.cart-price,
.summary-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-accent);
}

.old-price {
  color: var(--color-text-soft);
  text-decoration: line-through;
  font-size: 0.95rem;
}

.card-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.site-footer {
  margin-top: 48px;
  padding: 40px 0 26px;
  background: #0f172a;
  color: #d9e3f3;
}

.site-footer a {
  color: #d9e3f3;
}

.footer-top {
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-nav,
.footer-contacts {
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  padding-top: 22px;
  color: #a7b7d0;
  font-size: 0.92rem;
}

.breadcrumbs {
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0 0;
  color: var(--color-text-soft);
  font-size: 0.94rem;
}

.page-hero {
  padding: 24px 0 12px;
}

.page-hero .card {
  padding: 28px;
}

.catalog-layout,
.cabinet-layout,
.profile-layout,
.product-layout,
.cart-layout {
  display: grid;
  gap: 24px;
}

.catalog-layout,
.profile-layout,
.cabinet-layout,
.cart-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.product-layout {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.filters-panel,
.sidebar-panel,
.product-gallery,
.product-summary,
.product-extra,
.supplier-hero,
.cart-summary {
  padding: 22px;
}

.filters-panel,
.sidebar-panel,
.product-gallery,
.product-summary,
.product-extra,
.supplier-hero,
.cart-summary,
.offer-item,
.favorite-item,
.cart-item {
  background: var(--color-surface);
  border: 1px solid rgba(215, 222, 234, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.filter-group,
.form-group {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-group label,
.form-group label {
  font-weight: 700;
  font-size: 0.96rem;
}

.catalog-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.products-list.catalog-list-view,
.offer-list,
.review-list,
.products-list,
.order-table,
.favorite-list,
.cart-items {
  display: grid;
  gap: 16px;
}

.catalog-list-view .product-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.catalog-list-view .product-card img {
  margin-bottom: 0;
  height: 100%;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.gallery-main {
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-surface-muted);
  margin-bottom: 14px;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.gallery-thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-thumb.active {
  border-color: var(--color-primary);
}

.product-summary h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.12;
  margin-bottom: 16px;
}

.product-summary-meta,
.supplier-head,
.supplier-top,
.auth-head,
.cart-item-row,
.favorite-item-row,
.review-head {
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.product-summary-meta {
  color: var(--color-text-soft);
  margin-bottom: 16px;
}

.product-actions {
  margin: 22px 0;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--color-surface-muted);
  color: var(--color-text-soft);
  font-weight: 700;
}

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

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.spec-item,
.compat-item,
.stat-item {
  padding: 16px;
  border-radius: 14px;
  background: var(--color-surface-muted);
}

.supplier-card-logo,
.supplier-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #d8e5ff, #eef4ff);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.supplier-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.supplier-head {
  align-items: start;
  margin-bottom: 18px;
}

.supplier-cover {
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f172a, #16408f 70%, #2f70ff);
  color: #fff;
}

.order-table .order-card,
.favorite-list .favorite-item,
.cart-items .cart-item,
.offer-list .offer-item,
.products-list .supplier-product-row {
  padding: 18px;
}

.favorite-item,
.cart-item,
.offer-item,
.supplier-product-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.qty-box button {
  width: 40px;
  height: 40px;
  background: var(--color-surface-muted);
}

.qty-box input {
  width: 54px;
  text-align: center;
  border: none;
  padding: 0;
}

.summary-card,
.cart-summary,
.auth-card,
.cabinet-layout > .cabinet-card,
.sidebar-panel {
  position: sticky;
  top: 108px;
}

.summary-list,
.cabinet-menu,
.contact-list {
  display: grid;
  gap: 12px;
}

.summary-list li,
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--color-text-soft);
}

.summary-total {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--color-border);
  font-size: 1.14rem;
  font-weight: 800;
  color: var(--color-accent);
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: center;
}

.auth-showcase {
  padding: 34px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
}

.auth-showcase p,
.auth-showcase li {
  color: rgba(255, 255, 255, 0.84);
}

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

.auth-card {
  padding: 28px;
}

.cabinet-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--color-text-soft);
  background: var(--color-surface-muted);
}

.cabinet-menu a.active {
  background: rgba(31, 94, 255, 0.1);
  color: var(--color-primary);
  font-weight: 700;
}

.cabinet-content {
  display: grid;
  gap: 18px;
}

.cabinet-grid,
.order-row {
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.notice {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(31, 94, 255, 0.08);
  color: var(--color-primary);
  font-weight: 600;
}

.seller-block-notice {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  border: 1px solid rgba(209, 63, 63, 0.22);
  background: rgba(209, 63, 63, 0.08);
  color: var(--color-danger);
}

.seller-block-notice span {
  color: #8f2b2b;
  font-size: 0.92rem;
}

.seller-import-pending-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(31, 94, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  text-align: left;
}

.seller-import-pending-card h3 {
  margin: 0 0 6px;
  color: var(--color-accent);
}

.seller-import-pending-card p {
  margin: 0 0 12px;
  color: var(--color-text-soft);
}

.seller-import-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid rgba(31, 94, 255, 0.14);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: seller-import-spin 0.8s linear infinite;
}

.seller-import-pending-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seller-import-pending-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.seller-import-pending-meta strong {
  color: var(--color-primary);
}

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


.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-text-soft);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-main img {
  max-width: 100%;
  border-radius: var(--radius-md);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.gallery-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery-thumb.active {
  border-color: var(--color-primary);
}

.gallery-thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.product-summary h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.product-summary-meta {
  margin-bottom: 10px;
}

.filter-tags {
  margin-bottom: 15px;
}

.price-row {
  margin-bottom: 15px;
}

.product-actions {
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.stat-item {
  padding: 10px;
  background: var(--color-surface-muted);
  border-radius: var(--radius-sm);
}

.modal-extra {
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tab-btn {
  padding: 10px 15px;
  background: var(--color-surface-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

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

.tab-panel {
  display: none;
  padding: 15px;
  background: var(--color-surface-muted);
  border-radius: var(--radius-sm);
}

.tab-panel.active {
  display: block;
}

.btn-link {
  color: var(--color-primary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.empty-state {
  padding: 26px;
  text-align: center;
  color: var(--color-text-soft);
}

.home-hero {
  position: relative;
  padding: 46px 0 30px;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  width: auto;
  height: 132px;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(36, 87, 230, 0.11), rgba(15, 143, 140, 0.08), rgba(224, 155, 34, 0.08));
  pointer-events: none;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 420px;
  gap: 24px;
  align-items: stretch;
}

.home-hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4vw, 52px);
  border-radius: 32px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 53, 104, 0.94) 55%, rgba(31, 94, 255, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
}

.home-hero-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 42%;
  border-radius: 0;
  border: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0), rgba(255,255,255,0.14)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.16) 0 1px, transparent 1px 13px);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.home-hero-card h1 {
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 20px;
}

.home-hero-card p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  margin-bottom: 24px;
}

.home-search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
  margin-bottom: 14px;
}

.home-search-box input {
  border: none;
  padding: 14px 16px;
  color: var(--color-text);
  background: transparent;
}

.home-search-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
  margin-bottom: 24px;
}

.home-search-hint span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.hero-proof-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-proof-item strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-proof-item span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.home-hero-subtitle {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
}

.home-benefit-card {
  position: relative;
}

.home-benefit-icon {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--color-primary);
  font-weight: 900;
}

.hero-dashboard {
  display: grid;
  gap: 16px;
}

.dashboard-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(215, 222, 234, 0.9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.dashboard-card.dark {
  color: #fff;
  background: linear-gradient(135deg, #111827, #1d4ed8);
  border: none;
}

.dashboard-head,
.live-row,
.brand-card,
.deal-head,
.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-head {
  margin-bottom: 16px;
}

.live-list {
  display: grid;
  gap: 12px;
}

.live-row {
  padding: 12px;
  border-radius: 16px;
  background: #f6f8fc;
}

.live-row strong {
  display: block;
  line-height: 1.2;
}

.live-row span {
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.vin-panel {
  display: grid;
  gap: 12px;
}

.vin-panel input {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 13px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.vin-panel input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.brand-card {
  min-height: 76px;
  padding: 16px;
  border-radius: 18px;
  background: var(--color-surface);
  border: 1px solid rgba(215, 222, 234, 0.85);
  box-shadow: var(--shadow-sm);
}

.brand-card strong {
  font-size: 0.98rem;
}

.brand-card span {
  color: var(--color-text-soft);
  font-size: 0.84rem;
}

.category-card.featured {
  grid-column: span 2;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1e55c7);
}

.category-card.featured .category-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.category-card .category-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-card .category-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--color-text-soft);
  background: var(--color-surface-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.category-card.featured .category-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.deal-card {
  overflow: hidden;
  position: relative;
}

.deal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary), #75a7ff);
}

.deal-head {
  margin-bottom: 12px;
}

.deal-seller {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--color-surface-muted);
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

.supplier-card.premium {
  position: relative;
  overflow: hidden;
}

.supplier-card.premium::after {
  content: "TOP";
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 800;
}

.workflow-section {
  border-radius: 30px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,244,255,0.92)),
    linear-gradient(90deg, rgba(36, 87, 230, 0.08), rgba(15, 143, 140, 0.08));
  border: 1px solid rgba(215, 222, 234, 0.9);
  box-shadow: var(--shadow-sm);
}

.step-card {
  position: relative;
  overflow: hidden;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--color-primary);
  font-weight: 800;
  margin-bottom: 18px;
}

.trust-panel {
  padding: 32px;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #123b86 64%, #1f5eff);
  box-shadow: var(--shadow-md);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.trust-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.trust-item p {
  color: rgba(255, 255, 255, 0.78);
}

.catalog-compact-page {
  background: #f8fafc;
}

.catalog-compact {
  padding: 22px 0 38px;
}

.catalog-compact-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.catalog-compact-head h1 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.catalog-top-filters {
  display: grid;
  grid-template-columns: 220px 110px repeat(4, auto) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid #dce3ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.compact-filter {
  display: grid;
  gap: 4px;
}

.compact-filter label,
.check-filter {
  color: var(--color-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.compact-filter select,
.compact-filter input {
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
}

.check-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  color: var(--color-text);
  white-space: nowrap;
}

.check-filter input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

.compact-search {
  display: flex;
  gap: 8px;
}

.compact-search input {
  min-width: 0;
  height: 36px;
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 7px 10px;
}

.catalog-offer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 18px;
  color: var(--color-text-soft);
  font-size: 0.94rem;
}

.offer-table-group {
  overflow: hidden;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  margin-bottom: 18px;
}

.offer-table-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5ebf3;
  background: #fbfcfe;
}

.offer-table-title h2 {
  font-size: 1rem;
}

.offer-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.92rem;
}

.offer-table th,
.offer-table td {
  padding: 9px 16px;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
  vertical-align: middle;
}

.offer-table th {
  color: #253044;
  background: #f9fbfd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.offer-table tr:last-child td {
  border-bottom: none;
}

.offer-table tbody tr {
  transition: var(--transition);
}

.offer-table tbody tr:hover {
  background: #f7fbff;
}

.col-maker {
  width: 130px;
}

.col-code {
  width: 120px;
}

.col-photo {
  width: 72px;
}

.col-delivery {
  width: 210px;
}

.col-price {
  width: 150px;
}

.col-seller {
  width: 170px;
}

.col-action {
  width: 74px;
  text-align: right;
}

.offer-code {
  color: #1f2937;
  font-weight: 700;
}

.offer-desc {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.offer-desc a {
  overflow: hidden;
  color: #253044;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-desc a:hover {
  color: var(--color-primary);
}

.offer-thumb {
  width: 58px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--color-surface-muted);
}

.small-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  color: #fff;
  background: #5c8fc5;
  font-size: 0.72rem;
  font-weight: 800;
}

.vip-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  color: #fff;
  background: #08a4bd;
  font-size: 0.72rem;
  font-weight: 800;
}

.delivery-now {
  color: var(--color-success);
  font-weight: 800;
}

.delivery-muted {
  color: var(--color-text-soft);
}

.offer-price {
  color: #111827;
  font-weight: 500;
  white-space: nowrap;
}

.seller-note {
  display: block;
  color: var(--color-success);
  font-size: 0.8rem;
}

.cart-square {
  width: 44px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: #58a866;
  font-size: 1.1rem;
  transition: var(--transition);
}

.cart-square:hover {
  background: #3f914d;
  transform: translateY(-1px);
}

.cart-square.is-added {
  background: var(--color-accent);
}

.show-more-row {
  display: flex;
  justify-content: center;
  padding: 16px;
  color: var(--color-primary);
  font-weight: 800;
}

/* Modern polish layer shared by every page. */
:root {
  --color-primary: #2457e6;
  --color-primary-dark: #173fb6;
  --color-accent: #111827;
  --color-bg: #f4f7fb;
  --color-surface-muted: #edf2f8;
  --color-border: #d8e0eb;
  --color-text: #172033;
  --color-text-soft: #65748b;
  --color-teal: #0f8f8c;
  --color-amber: #e09b22;
  --shadow-sm: 0 12px 30px rgba(17, 24, 39, 0.07);
  --shadow-md: 0 22px 54px rgba(17, 24, 39, 0.11);
  --shadow-lg: 0 34px 90px rgba(17, 24, 39, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

body {
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(244,247,251,0.98) 42%, #eef3f8 100%),
    linear-gradient(120deg, rgba(36, 87, 230, 0.08), rgba(15, 143, 140, 0.08) 52%, rgba(224, 155, 34, 0.07));
}

::selection {
  background: rgba(36, 87, 230, 0.18);
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.section-title h1,
.section-title h2 {
  max-width: 900px;
}

.eyebrow {
  background: linear-gradient(90deg, rgb(36 87 230 / 59%), rgb(13 197 192));
}

.btn,
.icon-btn,
.tab-btn,
.quick-links .chip,
.filter-tags .chip,
.pagination a {
  border-radius: 10px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #3575f6);
  box-shadow: 0 12px 24px rgba(36, 87, 230, 0.24);
}

.btn-dark {
  background: linear-gradient(135deg, var(--color-accent), #273449);
}

.info-bar {
  background: linear-gradient(90deg, #111827, #18243a 52%, #153f4a);
}

.header-wrap {
  background: rgba(248, 250, 253, 0.9);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.header-row,
.search-bar,
.hero-search,
.product-card,
.supplier-card,
.category-card,
.cart-item,
.favorite-item,
.offer-item,
.supplier-product-row,
.order-card,
.cabinet-card {
  min-width: 0;
}

.logo-mark {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
}

.search-bar,
.hero-search {
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
}

.card,
.category-card,
.product-card,
.supplier-card,
.step-card,
.advantage-card,
.summary-card,
.cart-card,
.cabinet-card,
.order-card,
.review-card,
.info-card,
.delivery-card,
.filters-panel,
.sidebar-panel,
.product-gallery,
.product-summary,
.product-extra,
.supplier-hero,
.cart-summary,
.offer-item,
.favorite-item,
.cart-item,
.dashboard-card,
.brand-card,
.offer-table-group {
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.category-card:hover,
.product-card:hover,
.supplier-card:hover,
.order-card:hover,
.review-card:hover,
.advantage-card:hover,
.cabinet-card:hover,
.delivery-card:hover,
.cart-item:hover,
.favorite-item:hover,
.offer-item:hover,
.brand-card:hover {
  border-color: rgba(36, 87, 230, 0.28);
  box-shadow: var(--shadow-md);
}

.product-card img,
.favorite-item img,
.cart-item img,
.offer-item img,
.supplier-product-row img {
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(36,87,230,0.06), rgba(15,143,140,0.08)),
    var(--color-surface-muted);
}

.site-footer {
  background:
    linear-gradient(180deg, #111827, #0c1220),
    linear-gradient(90deg, rgba(36, 87, 230, 0.2), rgba(15, 143, 140, 0.18));
}

.page-hero .card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 44px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17,24,39,0.96), rgba(25,66,94,0.94) 58%, rgba(36,87,230,0.9)),
    linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  border: none;
  box-shadow: var(--shadow-lg);
}

.page-hero .card p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
}

.page-hero .card .eyebrow,
.auth-showcase .eyebrow,
.supplier-cover .eyebrow,
.trust-panel .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.hero-panel,
.home-hero-card,
.dashboard-card.dark,
.supplier-cover,
.auth-showcase,
.trust-panel,
.category-card.featured {
  background:
    linear-gradient(135deg, rgba(17,24,39,0.97), rgba(20,67,88,0.94) 56%, rgba(36,87,230,0.92)),
    linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
}

.home-hero::before {
  inset: 0 0 auto 0;
  width: auto;
  height: 132px;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(36, 87, 230, 0.11), rgba(15, 143, 140, 0.08), rgba(224, 155, 34, 0.08));
}

.home-hero-card {
  border-radius: 24px;
}

.home-hero-card::after {
  right: 0;
  bottom: 0;
  width: 42%;
  height: 42%;
  border: none;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0), rgba(255,255,255,0.14)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.16) 0 1px, transparent 1px 13px);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
}

.home-hero-card h1,
.catalog-compact-head h1 {
  letter-spacing: 0;
}

.workflow-section,
.trust-panel,
.supplier-cover,
.auth-showcase {
  border-radius: var(--radius-lg);
}

.workflow-section {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(238,246,247,0.94)),
    linear-gradient(90deg, rgba(36, 87, 230, 0.08), rgba(15, 143, 140, 0.08));
}

.brand-card {
  border-radius: 12px;
}

.catalog-compact-page {
  background:
    linear-gradient(180deg, #fbfcfe 0%, #f2f6fb 100%),
    linear-gradient(90deg, rgba(36, 87, 230, 0.08), rgba(15, 143, 140, 0.08));
}

.catalog-top-filters {
  grid-template-columns: minmax(170px, 220px) minmax(90px, 110px) repeat(4, max-content) minmax(190px, 1fr);
  border-radius: 12px;
}

.offer-table th,
.offer-table td {
  overflow-wrap: anywhere;
}

/* Catalog page redesign. */
.catalog-compact {
  padding-top: 0;
}

.catalog-compact .breadcrumbs {
  padding-top: 14px;
  font-size: 0.86rem;
}

.catalog-results-shell {
  display: grid;
  gap: 12px;
}

.catalog-search-dock {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(216, 224, 235, 0.95);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(247,250,253,0.96)),
    linear-gradient(90deg, rgba(36,87,230,0.05), rgba(15,143,140,0.05));
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.catalog-query {
  min-width: 0;
}

.catalog-kicker {
  display: block;
  color: var(--color-text-soft);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-query h1 {
  margin: 1px 0;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  line-height: 1;
}

.catalog-query p {
  overflow: hidden;
  color: var(--color-text-soft);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-search-dock .catalog-top-filters {
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(112px, 0.45fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.catalog-search-dock .compact-filter {
  gap: 2px;
}

.catalog-search-dock .compact-filter label {
  font-size: 0.68rem;
}

.catalog-search-dock .compact-filter select,
.catalog-search-dock .compact-filter input,
.catalog-search-dock .compact-search input {
  height: 34px;
  border-radius: 8px;
  font-size: 0.88rem;
}

.catalog-search-dock .compact-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.catalog-search-dock .compact-search .btn {
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 8px;
}

.catalog-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 8px;
}

.catalog-mini-stats span {
  display: grid;
  gap: 1px;
  min-width: 94px;
  padding: 8px 10px;
  border: 1px solid rgba(216, 224, 235, 0.85);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text-soft);
  font-size: 0.73rem;
  line-height: 1.15;
}

.catalog-mini-stats strong {
  color: var(--color-text);
  font-size: 0.86rem;
}

.catalog-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(216, 224, 235, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
}

.catalog-tabs,
.catalog-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-tab,
.catalog-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text-soft);
  font-size: 0.84rem;
  font-weight: 750;
}

.catalog-tab.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.catalog-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--color-primary);
}

.catalog-strip .btn {
  min-height: 32px;
  padding: 7px 12px;
  font-size: 0.84rem;
}

.catalog-results-shell .offer-table-group {
  margin-bottom: 12px;
  border-color: rgba(216, 224, 235, 0.95);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.045);
}

.catalog-results-shell .offer-table-title {
  padding: 9px 12px;
  background:
    linear-gradient(90deg, #f7fafc, #ffffff),
    linear-gradient(90deg, rgba(36,87,230,0.05), rgba(15,143,140,0.05));
}

.catalog-results-shell .offer-table-title h2 {
  font-size: 0.94rem;
}

.catalog-results-shell .offer-table {
  font-size: 0.9rem;
}

.catalog-results-shell .offer-table th,
.catalog-results-shell .offer-table td {
  padding: 8px 12px;
}

.catalog-results-shell .offer-table th {
  color: #4b5a70;
  background: #f4f7fa;
  font-size: 0.72rem;
}

.catalog-results-shell .offer-table tbody tr:hover {
  background: #f3fbfa;
}

.catalog-results-shell .offer-code {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(36, 87, 230, 0.08);
  color: var(--color-primary);
}

.catalog-results-shell .offer-price {
  color: #0f766e;
  font-size: 0.98rem;
}

.catalog-results-shell .cart-square {
  width: 38px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f8f8c, #1f9d57);
}

.catalog-results-shell .pagination {
  margin-top: 16px;
}

/* Seller cabinet page. */
.seller-hero {
  padding: 28px 0 8px;
}

.seller-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}

.seller-hero-main,
.seller-status-panel {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.seller-hero-main {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.97), rgba(15, 88, 93, 0.94) 56%, rgba(36, 87, 230, 0.92)),
    linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
}

.seller-hero-main::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38%;
  height: 38%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0), rgba(255,255,255,0.14)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.15) 0 1px, transparent 1px 12px);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
}

.seller-hero-main h1 {
  position: relative;
  z-index: 1;
  max-width: 820px;
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 1.02;
  margin-bottom: 16px;
}

.seller-hero-main p {
  position: relative;
  z-index: 1;
  max-width: 740px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 22px;
}

.seller-hero-main .eyebrow,
.seller-hero-main .btn-light {
  position: relative;
  z-index: 1;
}

.seller-hero-actions,
.seller-form-actions,
.seller-toolbar,
.seller-section-head,
.seller-status-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.seller-form-actions form {
  margin: 0;
}

.telegram-connect-box {
  display: grid;
  gap: 14px;
  max-width: 620px;
}

.telegram-connect-box .btn {
  width: max-content;
}

.telegram-connect-box input[readonly] {
  font-weight: 700;
  letter-spacing: 0;
  background: #f8fbff;
}

.seller-phone-editor {
  grid-column: 1 / -1;
}

.seller-phone-editor > label {
  margin-bottom: 2px;
}

.seller-phone-list {
  display: grid;
  gap: 10px;
}

.seller-phone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.seller-phone-row input[type="tel"] {
  min-height: 46px;
  margin: 0;
}

.messenger-toggle-group {
  display: inline-grid;
  grid-template-columns: repeat(3, 38px);
  gap: 7px;
  align-items: center;
}

.messenger-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid #d6e0ee;
  border-radius: 10px;
  background: #fff;
  color: #6b7a90;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.messenger-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.messenger-toggle span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.messenger-toggle .icon-svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.messenger-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.messenger-toggle.active {
  color: #fff;
  border-color: transparent;
}

.messenger-toggle.active.messenger-viber {
  background: #7360f2;
}

.messenger-toggle.active.messenger-whatsapp {
  background: #18b85f;
}

.messenger-toggle.active.messenger-telegram {
  background: #239bd8;
}

@media (max-width: 640px) {
  .seller-phone-row {
    grid-template-columns: 1fr;
  }

  .messenger-toggle-group {
    justify-content: start;
  }
}

.seller-status-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,250,253,0.96)),
    linear-gradient(90deg, rgba(15,143,140,0.06), rgba(224,155,34,0.06));
  border: 1px solid rgba(216, 224, 235, 0.9);
}

.seller-status-head {
  justify-content: space-between;
  align-items: start;
}

.seller-status-head p,
.seller-health span,
.seller-metric-card p,
.seller-metric-card span,
.seller-products-list p,
.finance-card p,
.finance-card span {
  color: var(--color-text-soft);
}

.seller-health {
  display: grid;
  gap: 10px;
}

.seller-health span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(216, 224, 235, 0.8);
}

.seller-health strong {
  color: var(--color-text);
}

.seller-dashboard-section {
  padding-top: 24px;
}

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

.seller-sidebar {
  position: sticky;
  top: 108px;
}

.seller-support-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.seller-support-box p {
  color: var(--color-text-soft);
}

.seller-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.seller-metrics-grid,
.finance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.finance-grid-ad-only {
  grid-template-columns: minmax(260px, 420px);
}

.seller-metric-card,
.finance-card {
  padding: 20px;
  border: 1px solid rgba(216, 224, 235, 0.9);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.seller-metric-card strong,
.finance-card strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--color-accent);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.seller-workspace {
  padding: clamp(18px, 3vw, 28px);
}

.seller-section-head {
  justify-content: space-between;
  align-items: end;
  margin-bottom: 18px;
}

.seller-section-head h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.12;
}

.seller-tabs {
  margin-bottom: 0;
}

.seller-toolbar {
  justify-content: space-between;
  margin-bottom: 14px;
}

.seller-products-search {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.seller-products-search .form-group {
  margin-bottom: 0;
}

.seller-products-count {
  margin-bottom: 12px;
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

.seller-pagination {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.seller-pagination span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--color-text-soft);
}

.supplier-profile-pagination {
  flex-wrap: wrap;
}

.supplier-profile-pagination span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--color-text-soft);
}

.filter-tags button.chip {
  cursor: pointer;
}

.seller-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(216, 224, 235, 0.95);
  border-radius: 12px;
  background: #fff;
}

.seller-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.94rem;
}

.seller-table th,
.seller-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
  vertical-align: middle;
}

.seller-table th {
  color: #4b5a70;
  background: #f7fafc;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.seller-table tr:last-child td {
  border-bottom: none;
}

.seller-table td:first-child span {
  display: block;
  color: var(--color-text-soft);
  font-size: 0.86rem;
}

.seller-table .btn {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
}

.seller-view-part-link {
  display: inline-flex;
  color: var(--color-primary);
  font-weight: 800;
}

.seller-view-part-link:hover {
  text-decoration: underline;
}

.seller-views-table {
  font-size: 0.76rem;
  line-height: 1.25;
}

.seller-views-table th,
.seller-views-table td {
  padding: 6px 8px;
}

.seller-views-table td strong,
.seller-views-table .seller-view-part-link {
  font-size: 0.78rem;
}

.seller-views-table .tag {
  padding: 4px 7px;
  font-size: 0.68rem;
}

.seller-product-grid,
.seller-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
}

.seller-form,
.seller-products-list,
.upload-dropzone,
.import-steps {
  border: 1px solid rgba(216, 224, 235, 0.9);
  border-radius: var(--radius-md);
  background: #fff;
  padding:10px;
}

.seller-form h3,
.seller-products-list h3,
.upload-dropzone h3,
.import-steps h3 {
  margin-bottom: 14px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

.seller-form .form-group {
  margin-bottom: 12px;
}

.seller-products-list {
  display: grid;
  align-content: start;
  gap: 12px;
}

.seller-products-list article {
  padding: 14px;
  border-radius: 10px;
  background: var(--color-surface-muted);
}

.upload-dropzone {
  display: grid;
  place-items: center;
  min-height: 310px;
  text-align: center;
  border-style: dashed;
  border-width: 2px;
  background:
    linear-gradient(135deg, rgba(36,87,230,0.05), rgba(15,143,140,0.06)),
    #fff;
}

.upload-dropzone p {
  max-width: 560px;
  color: var(--color-text-soft);
}

.upload-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
  font-weight: 900;
  letter-spacing: 0;
}

.import-steps ol {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.import-steps li {
  padding: 13px;
  border-radius: 10px;
  background: var(--color-surface-muted);
  color: var(--color-text-soft);
}

.import-steps strong {
  color: var(--color-text);
}

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

.finance-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.seller-lower-grid.cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seller-compact-bar {
  padding: 16px 0 0;
}

.seller-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid rgba(216, 224, 235, 0.92);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(247,250,253,0.96)),
    linear-gradient(90deg, rgba(36,87,230,0.05), rgba(15,143,140,0.05));
  box-shadow: var(--shadow-sm);
}

.seller-compact-title {
  min-width: 220px;
}

.seller-compact-title .eyebrow {
  margin-bottom: 4px;
  padding: 5px 10px;
  font-size: 0.78rem;
}

.seller-compact-title h1 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.seller-compact-stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.seller-compact-stats span:not(.status) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(216, 224, 235, 0.9);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text-soft);
  font-size: 0.88rem;
  white-space: nowrap;
}

.seller-compact-stats strong {
  color: var(--color-text);
}
/* UI refresh: header/footer/icons, catalog, seller pages, mobile */
.logo-mark {
  width: 48px;
  height: 48px;
  color: #fff;
}

.logo-mark svg {
  width: 26px;
  height: 26px;
  display: block;
}

.icon-svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.search-submit-btn {
  min-width: 48px;
  padding: 0 14px;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links a {
  color: #c3d2ea;
  font-size: 0.88rem;
}

.catalog-query p,
.offer-main p,
.offer-seller-card span {
  font-size: 0.84rem;
}

.parts-offer-row {
  border-radius: 12px;
  border: 1px solid #dde6f1;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.05);
}

.parts-offer-row:hover {
  transform: translateY(-1px);
}

.offer-badges-compact span {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: #f1f5fb;
}

.offer-seller-card {
  background: #f5f8fc;
  border: 1px solid #e2e9f3;
}

.offer-seller-card strong {
  font-size: 0.92rem;
}

.offer-buy-box .offer-price {
  font-size: 1.05rem;
}

.cart-items-compact .price {
  font-size: 0.95rem;
}

.cart-icon-btn {
  width: 42px;
  height: 36px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
}

.cart-icon-btn::before {
  content: none !important;
}

.product-modal-main {
  gap: 10px;
}

.catalog-single-product {
  margin-top: 12px;
}

.catalog-single-product .product-modal-beauty {
  width: 100%;
  max-width: none;
  border-radius: 12px;
  box-shadow: none;
}

.catalog-single-product .product-modal-titlebar {
  padding-right: 0;
}

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

.product-modal-titlebar h1 {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
}

.product-modal-main .product-summary-meta,
.product-modal-beauty .tab-panel,
.modal-seller,
.modal-seller p,
.modal-seller-facts span,
.modal-seller-phone {
  font-size: 0.84rem;
}

.modal-seller {
  padding: 10px;
  gap: 8px;
}

.modal-seller-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.modal-seller-head strong {
  font-size: 0.95rem;
}

.modal-seller-phone {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.modal-seller-phone-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-seller-phone-number {
  color: var(--color-text);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

.modal-messenger-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
}

.messenger-chat {
  width: 30px;
  height: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.messenger-chat:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(28, 42, 68, 0.16);
}

.messenger-chat svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.messenger-chat.viber {
  background: #7360f2;
}

.messenger-chat.whatsapp {
  background: #18b957;
}

.messenger-chat.telegram {
  background: #229ed9;
}

.modal-seller-phone-label {
  width: 100%;
  color: var(--color-text-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.modal-phone-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--color-primary);
  background: #eef4ff;
  flex: 0 0 auto;
}

.modal-phone-icon svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}

.seller-rating-inline {
  display: block;
  margin-top: 2px;
  color: var(--color-text-soft);
  font-style: normal;
  font-size: 0.78rem;
}

.modal-seller-facts-inline span {
  display: grid;
  gap: 3px;
}

.modal-seller-facts-inline small {
  color: var(--color-text-soft);
  font-weight: 700;
}

.modal-cart-wide {
  min-width: 0;
  width: 100%;
}

.product-modal-main .product-actions {
  align-items: stretch;
}

.product-modal-main .product-actions form {
  display: flex;
  min-width: 0;
}

.product-modal-main .product-actions .btn,
.modal-action-price {
  min-height: 56px;
}

.product-modal-main .product-actions form .btn {
  height: 100%;
}

.modal-action-price {
  display: grid;
  gap: 2px;
  align-content: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dfe8f2;
  border-radius: 10px;
  background: #f8fbff;
}

.modal-action-price span {
  color: var(--color-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
}

.modal-action-price strong {
  color: var(--color-accent);
  font-size: 1rem;
  line-height: 1.1;
}

.order-review-form {
  margin-top: 10px;
}

.order-review-form summary {
  width: max-content;
  list-style: none;
  cursor: pointer;
}

.order-review-form summary::-webkit-details-marker {
  display: none;
}

.order-review-form form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  max-width: 520px;
}

.catalog-sort-form label {
  display: grid;
  gap: 6px;
  color: var(--color-text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.catalog-sort-form select {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}

.offer-buy-box {
  gap: 4px;
}

.live-search .live-results {
  top: 100%;
  left: 10px;
  right: 10px;
  z-index: 9999;
  margin-top: 0;
}

.product-modal-beauty .modal-extra {
  margin-top: 8px;
  padding-top: 6px;
}

.product-modal-beauty .tabs {
  margin-top: 8px;
  margin-bottom: 8px;
}

.supplier-profile-cover-better {
  gap: 12px;
}

.supplier-profile-head-better {
  align-items: center;
}

.supplier-profile-content-only {
  display: block;
}

.supplier-profile-offer-list .parts-offer-row {
  grid-template-columns: 82px minmax(0, 1fr) 180px 150px;
}

.show-all-products-row {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.seller-product-modal-overlay {
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
}

.seller-product-modal {
  width: min(920px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 14px;
  padding: 24px;
}

.seller-modal-head {
  margin-bottom: 10px;
}

.seller-product-form {
  border-radius: 12px;
  border: 1px solid #dce5f2;
  background: #f8fbff;
}

.seller-upload-field small {
  display: block;
  margin-top: 6px;
  color: var(--color-text-soft);
  font-size: 0.8rem;
}

.seller-products-compact {
  font-size: 0.84rem;
}

.seller-products-compact th,
.seller-products-compact td {
  padding: 9px 10px;
}

.seller-products-compact td strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.88rem;
}

.seller-products-compact td span {
  color: var(--color-text-soft);
  font-size: 0.76rem;
}

.seller-products-compact .btn {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.seller-products-stock-table {
  min-width: 760px;
}

.seller-products-stock-table th:first-child,
.seller-products-stock-table td:first-child {
  width: 74px;
}

.seller-products-stock-table th:last-child,
.seller-products-stock-table td:last-child {
  width: 96px;
}

.seller-product-table-image {
  width: 52px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--color-surface-muted);
}

.seller-product-table-image-empty {
  display: inline-grid;
  place-items: center;
  color: var(--color-text-soft);
  font-weight: 800;
}

.seller-product-description-cell {
  display: block;
  color: var(--color-text-soft);
  font-size: 0.76rem;
  line-height: 1.35;
}

.seller-product-row-actions {
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 0;
}

.seller-product-row-actions form {
  display: inline-flex;
}

.seller-product-action-btn {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
}

.seller-product-action-btn .icon-svg {
  width: 17px;
  height: 17px;
}

.seller-product-action-danger {
  color: #b42318;
  background: #fff5f5;
  border-color: #ffd0d0;
}

.seller-form input,
.seller-form select,
.seller-form textarea,
.upload-dropzone input,
.seller-order-status select {
  border: 1px solid #cfd9e7;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.seller-form input:focus,
.seller-form select:focus,
.seller-form textarea:focus,
.upload-dropzone input:focus,
.seller-order-status select:focus {
  outline: none;
  border-color: #4b78ef;
  box-shadow: 0 0 0 3px rgba(75, 120, 239, 0.12);
}

.seller-orders-lines {
  gap: 10px;
}

.seller-order-flat {
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: stretch;
  gap: 14px;
}

.seller-order-main,
.seller-order-side {
  border: 1px solid #e1e9f3;
  border-radius: 10px;
  background: #fbfdff;
  padding: 12px;
}

.seller-order-headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.seller-order-headline h3 {
  margin: 0;
  font-size: 1rem;
}

.seller-order-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--color-text-soft);
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.seller-order-items-list {
  display: grid;
  gap: 6px;
}

.seller-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #e5ecf5;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  font-size: 0.8rem;
}

.seller-order-item-title {
  color: var(--color-text);
  font-weight: 700;
}

.seller-order-item-code {
  color: #1e3a8a;
  font-weight: 700;
}

.seller-order-side {
  display: grid;
  align-content: space-between;
  gap: 10px;
}

.seller-order-side strong {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .catalog-summary-only {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center;
  }

  .catalog-sort-icon-form {
    justify-self: end;
  }

  .catalog-sort-icon-form .sort-label {
    display: none;
  }

  .catalog-sort-icon-form select {
    position: absolute;
    inset: 0;
    width: 38px;
    opacity: 0;
  }

  .product-modal-main .filter-tags .tag,
  .product-modal-main .filter-tags .status {
    font-size: 0.68rem;
    padding: 3px 6px;
  }

  .cart-items-compact .cart-item {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 7px;
  }

  .cart-items-compact .cart-item img {
    width: 46px !important;
    height: 38px !important;
  }

  .cart-items-compact .cart-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
  }

  .cart-items-compact .cart-meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cart-items-compact .cart-item-actions {
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
  }

  .cart-items-compact .qty-mini-form .btn,
  .cart-items-compact .tag {
    min-height: 28px;
    padding: 4px 7px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .cart-line-total {
    display: none;
  }

  .seller-sidebar {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .seller-sidebar [data-seller-menu] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1190;
    width: min(320px, 86vw);
    display: grid !important;
    align-content: start;
    gap: 10px;
    padding: 18px;
    background: #fff;
    box-shadow: -20px 0 48px rgba(15, 23, 42, 0.2);
    transform: translateX(110%);
    transition: transform 0.24s ease;
  }

  .seller-sidebar [data-seller-menu].open {
    transform: translateX(0);
  }

  .seller-order-filter {
    align-items: end;
  }

  .seller-order-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1;
  }
}

@media (min-width: 769px) {
  .seller-menu-close {
    display: none;
  }
}

@media (max-width: 576px) {
  .seller-order-filter {
    gap: 6px;
  }

  .seller-order-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-order-filter .form-group {
    font-size: 0.76rem;
  }

  .seller-order-filter input {
    font-size: 0.78rem;
  }
}

/* Site typography: Montserrat */
body,
p,
li,
input,
select,
textarea {
  font-weight: 400;
}

h1,
h2,
h3,
h4,
.section-title h1,
.section-title h2,
.home-hero-title-small,
.product-modal-titlebar h1,
.supplier-profile-cover h1 {
  font-weight: 750;
  letter-spacing: 0;
}

strong,
b,
.price,
.offer-price,
.logo,
.offer-brand,
.offer-code,
.seller-order-item-title,
.seller-order-item-code {
  font-weight: 750;
}

.btn,
.icon-btn,
.tag,
.status,
.eyebrow,
.catalog-kicker,
.catalog-sort-form label,
.form-group label,
.filter-group label,
.counter-badge,
.cabinet-menu a {
  font-weight: 650;
}

.product-meta,
.supplier-meta,
.order-meta,
.cart-meta,
.favorite-meta,
.offer-main p,
.modal-seller p,
.live-result-item em,
.live-result-item small,
.seller-order-meta-line {
  font-size: 0.88rem;
  font-weight: 400;
}

.btn,
.icon-btn {
  font-size: 0.94rem;
}

.tag,
.status {
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  html {
    font-size: 14.5px;
  }
}

@media (max-width: 768px) {
  .search-submit-btn {
    min-width: 38px;
    min-height: 38px;
    width: 38px;
    padding: 0;
    border-radius: 9px;
  }

  .search-submit-btn .search-submit-text {
    display: none;
  }

  .header-search {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .parts-offer-row {
    grid-template-columns: 58px minmax(0, 1fr) auto !important;
    gap: 8px;
    padding: 8px;
  }

  .offer-title-link {
    font-size: 0.84rem;
  }

  .offer-main p {
    display: none;
  }

  .offer-seller-card {
    display: none;
  }

  .offer-badges-compact span {
    font-size: 0.72rem;
    padding: 3px 7px;
  }

  .product-modal-overlay {
    align-items: stretch;
    padding: 6px;
  }

  .product-modal-beauty {
    max-height: calc(100vh - 12px);
    overflow-y: auto;
  }

  .product-modal-main,
  .product-modal-media,
  .product-modal-beauty .modal-extra {
    padding: 10px;
  }

  .product-modal-beauty .tab-panel {
    max-height: 180px;
    overflow-y: auto;
  }

  .modal-seller-facts {
    grid-template-columns: 1fr;
  }

  .supplier-profile-offer-list .parts-offer-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }

  .seller-order-flat {
    grid-template-columns: 1fr;
  }

  .seller-order-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .seller-product-modal {
    width: 100%;
    max-height: calc(100vh - 12px);
    padding: 16px;
  }
}

/* 2026-04 mobile/business updates */
.mobile-auth-strip {
  display: none;
  background: #0f172a;
  color: #fff;
  font-size: 0.86rem;
}

.mobile-auth-strip-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-auth-strip a {
  color: #fff;
  text-decoration: underline;
}

.useful-articles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.useful-article-card h3 {
  margin-top: 8px;
  margin-bottom: 8px;
}

.favorite-list-rows .favorite-item {
  grid-template-columns: 120px minmax(0, 1fr) auto;
}

.cart-items-compact .cart-item {
  grid-template-columns: 110px minmax(0, 1fr) auto;
  padding: 12px;
}

.cart-items-compact .cart-item-no-image {
  grid-template-columns: minmax(0, 1fr) auto;
}

.qty-mini-form .btn {
  min-height: 38px;
  min-width: 42px;
  padding: 8px 12px;
}

.gallery-thumbs-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-thumbs-vertical .gallery-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.product-modal-main .price-row .price {
  font-size: 1.2rem;
}

.product-modal-main,
.product-modal-main p,
.product-modal-main span,
.product-modal-main .tag,
.product-modal-main .status {
  font-size: 0.88rem;
}

.product-modal-main h1 {
  font-size: 1.35rem;
}

.modal-reviews {
  display: grid;
  gap: 8px;
}

.modal-review-item {
  background: #fff;
  border: 1px solid #e3e9f3;
  border-radius: 8px;
  padding: 8px;
}

.modal-review-item span {
  color: var(--color-text-soft);
  font-size: 0.78rem;
}

.modal-review-item p {
  margin: 4px 0 0;
  font-size: 0.82rem;
}

.seller-menu-toggle {
  display: none;
  margin-bottom: 10px;
}

[data-seller-menu].open {
  display: grid !important;
}

@media (max-width: 992px) {
  .useful-articles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-auth-strip {
    display: block;
  }

  .favorite-list-rows .favorite-item,
  .cart-items-compact .cart-item {
    grid-template-columns: 1fr;
  }

  .favorite-list-rows .favorite-item img,
  .cart-items-compact .cart-item img {
    width: 100%;
    max-width: 260px;
    margin-bottom: 0;
  }

  .product-modal-layout {
    grid-template-columns: 1fr;
  }

  .product-modal-media {
    border-right: none;
    border-bottom: 1px solid #e4eaf2;
  }

  .gallery-thumbs-vertical {
    flex-direction: row;
  }

  .seller-menu-toggle {
    display: inline-flex;
    width: 100%;
  }

  .seller-sidebar [data-seller-menu] {
    display: none;
  }
}

/* 2026-04 UI fixes */
.btn-success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.24);
}

.btn-success:hover {
  background: linear-gradient(135deg, #15803d, #16a34a);
  transform: translateY(-1px);
}

.home-hero,
.home-hero-card {
  overflow: visible;
}

.home-search-box {
  position: relative;
  z-index: 12;
}

.catalog-compact .breadcrumbs {
  padding-top: 6px;
  padding-bottom: 10px;
}

.offer-open-hint {
  color: var(--color-text-soft);
  font-size: 0.75rem;
}

.offer-main-top .offer-brand {
  color: #141616;
  font-weight: 700;
}

.offer-main-top .offer-code {
  color: #1e3a8a;
  font-weight: 700;
}

.offer-badges-compact .small-badge {
  background: #eaf8ef;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.modal-favorite-btn {
  width: 50px !important;
  min-height: 50px !important;
  min-width: 50px !important;
  padding: 8px !important;
  border: 1px solid #e2e8f0;
  color: #e11d48;
}

.modal-favorite-btn.is-active {
  color: #be123c;
  border-color: #fbcfe8;
  background: #fff1f2;
}

.modal-seller-facts-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.modal-seller-facts-inline span {
  display: grid;
  align-items: start;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 0.78rem;
}

/* 2026-05 requested refinements */
main h1,
main h2,
.section-title h1,
.section-title h2,
.page-hero h1,
.supplier-profile-cover h1 {
  line-height: 1;
}

.home-benefit-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.home-benefit-icon {
  position: static;
  flex: none;
  margin: 0 0 4px;
}

.article-page {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px);
}

.article-page h1 {
  margin: 16px 0 22px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.article-page p {
  margin-top: 18px;
  color: #2f3b4f;
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  line-height: 1.85;
}

.article-page p + p {
  padding-top: 18px;
  border-top: 1px solid #e6edf6;
}

.parts-offer-row-no-image {
  grid-template-columns: minmax(0, 1fr) 132px;
}

.parts-offer-row-no-image .offer-main {
  padding-left: 0;
}

.parts-offer-row-no-image .offer-media,
.catalog-code-media[style*="display: none"],
.gallery-main[style*="display: none"] {
  display: none !important;
}

.product-modal-media .gallery-main:empty,
.product-modal-media .gallery-main[style*="display: none"] {
  display: none;
}

.product-modal-media #modal-seller-link {
  justify-self: start;
  width: auto;
  max-width: 100%;
}

.seller-landing-hero {
  padding: 42px 0 20px;
  background: linear-gradient(135deg, #0f172a 0%, #173562 55%, #1f5eff 100%);
  color: #fff;
}

.seller-landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
}

.seller-landing-grid h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 2.8vw, 3.2rem);
}

.seller-landing-grid p {
  max-width: 680px;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.84);
  font-size: 1.08rem;
}

.seller-tariff-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
}

.seller-tariff-card strong {
  font-size: 3rem;
  line-height: 1;
}

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

.seller-landing-title {
  margin-bottom: 22px;
}

.seller-landing-title h2 {
  max-width: 820px;
}

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

.seller-benefit-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(215, 222, 234, 0.95);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.seller-benefit-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef5ff;
  color: var(--color-primary);
  font-size: 0.86rem;
  font-weight: 800;
}

.seller-benefit-card h3 {
  margin: 2px 0 0;
  font-size: 1.08rem;
}

.seller-benefit-card p {
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.55;
}

.seller-benefit-wide {
  grid-column: span 3;
  min-height: 0;
}

.seller-join-section {
  padding-top: 0;
}

.seller-join-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  box-shadow: var(--shadow-sm);
}

.seller-join-card h2 {
  margin: 6px 0 10px;
  max-width: 760px;
}

.seller-join-card p {
  max-width: 780px;
  margin: 0;
  color: var(--color-text-soft);
}

.ad-topup-modal {
  width: min(540px, 94vw);
}

.ad-topup-modal h3 {
  margin-bottom: 16px;
}

.payment-choice-grid {
  display: grid;
  gap: 10px;
}

.payment-choice {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}

.payment-choice span {
  display: grid;
  gap: 2px;
}

.payment-choice small {
  color: var(--color-text-soft);
}

.home-vin-panel {
  margin-top: 12px;
}

/* 2026-05 marketplace requested updates */
.home-hero {
  padding-top: 18px;
}

.live-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.live-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.live-row strong {
  display: inline !important;
}

.live-row b {
  justify-self: end;
  white-space: nowrap;
}

.product-modal-main .filter-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
}

.product-modal-main .filter-tags .tag,
.product-modal-main .filter-tags .status {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.modal-seller-facts-inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-modal-main .product-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-sort-icon-form label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.catalog-sort-icon-form .sort-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-primary);
}

.catalog-sort-icon-form select {
  max-width: 250px;
}

.offer-buy-box {
  gap: 2px !important;
}

.offer-buy-box > span {
  font-size: 0.72rem;
  line-height: 1;
  color: var(--color-text-soft);
}

.offer-buy-box .offer-price {
  line-height: 1.05;
}

.checkout-summary-inline {
  padding: 12px 0 2px;
}

.cart-items-compact .cart-item {
  grid-template-columns: 110px minmax(0, 1fr);
}

.cart-item-actions {
  align-items: center;
}

.cart-line-total {
  margin-left: auto;
}

.seller-menu-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1200;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  box-shadow: var(--shadow-md);
}

.seller-menu-close {
  justify-self: end;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  font-size: 1.5rem;
}

.seller-order-filter {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-bottom: 12px;
}

.seller-order-filter-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 170px));
  gap: 8px;
}

.seller-order-filter .form-group {
  gap: 4px;
  margin-bottom: 0;
  font-size: 0.82rem;
}

.seller-order-filter input {
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.84rem;
}

.seller-filter-icon {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
}

.seller-order-status-actions {
  display: grid;
  gap: 8px;
}

.seller-order-status-actions .btn {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.seller-warehouse-head {
  align-items: center;
}

.btn-compact {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.86rem;
}

.seller-warehouse-card {
  cursor: pointer;
  transition: var(--transition);
}

.seller-warehouse-card:hover,
.seller-warehouse-card.active {
  border-color: rgba(31, 94, 255, 0.38);
  background: #f8fbff;
}

.seller-product-icon-actions {
  align-items: center;
}

.seller-product-icon-actions .icon-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
}

.btn-icon-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 800;
}

.seller-metric-link {
  color: var(--color-primary);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seller-metric-link:hover {
  color: var(--color-primary-dark);
}

@media (max-width: 992px) {
  .seller-landing-grid,
  .seller-info-grid,
  .seller-benefits-grid,
  .seller-join-card {
    grid-template-columns: 1fr;
  }

  .seller-benefit-wide {
    grid-column: auto;
  }

  .parts-offer-row-no-image {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
}

@media (max-width: 768px) {
  .header-row {
    min-height: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    align-items: center;
  }

  .header-search {
    margin-bottom: 0 !important;
  }

  .supplier-filter-form,
  .suppliers-page .search-bar,
  .catalog-toolbar .search-bar,
  .catalog-toolbar .search-bar select,
  .catalog-toolbar .search-bar button {
    width: 100%;
  }

  .catalog-toolbar .search-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cart-items-compact .cart-item {
    grid-template-columns: 56px minmax(0, 1fr) auto !important;
    gap: 8px;
    padding: 8px;
    align-items: center;
  }

  .cart-items-compact .cart-item-no-image {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .cart-items-compact .cart-item img {
    width: 56px !important;
    height: 44px !important;
    object-fit: cover;
    border-radius: 7px;
  }

  .cart-items-compact .cart-meta {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .cart-items-compact .card-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-top: 8px;
  }

  .cart-items-compact .qty-mini-form .btn,
  .cart-items-compact .tag {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 0.78rem;
  }

  .cart-items-compact .price,
  .cart-items-compact .offer-price {
    font-size: 0.92rem !important;
  }
}

.catalog-summary-with-code-media {
  grid-template-columns: minmax(0, 1fr) 118px auto;
}

.catalog-summary-with-code-media .catalog-code-media {
  order: 2;
}

.catalog-summary-with-code-media .catalog-sort-form {
  order: 3;
}

.catalog-code-media {
  width: 118px;
  aspect-ratio: 1;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.catalog-code-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.catalog-code-details {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.catalog-code-list {
  padding: 5px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.catalog-code-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.supplier-card-link {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  color: inherit;
  text-decoration: none;
}

.home-suppliers-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  max-width: 940px;
}

.supplier-card-link .supplier-card-logo {
  margin-bottom: 0;
}

.supplier-card-body {
  min-width: 0;
}

.supplier-card-body h3 {
  margin-top: 0;
}

.supplier-card-body p:last-child {
  margin-bottom: 0;
}

.seller-city-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.seller-city-badge .icon-svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.offer-code {
  font-size: 0.9rem;
}

.catalog-seo-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px);
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.catalog-seo-block p {
  color: var(--color-text-soft);
  line-height: 1.7;
}

.catalog-seo-media {
  width: 100%;
  max-width: 180px;
  justify-self: end;
}

.seller-products-header-polished {
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.seller-products-header-polished h2 {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

.seller-products-search {
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface-muted);
}

.seller-products-search input[type="search"] {
  min-height: 46px;
  border-radius: 8px;
}

.catalog-code-chips a {
      display: grid;
    gap: 2px;
    min-width: auto;
    padding: 5px 10px;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    background: var(--color-surface-muted);
    color: var(--color-text);
    text-decoration: none;
}

/* Seller orders redesign */
.seller-orders-workspace {
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
    linear-gradient(90deg, rgba(36, 87, 230, 0.04), rgba(15, 143, 140, 0.04));
}

.seller-orders-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding-bottom: 16px;
  border-bottom: 1px solid #dde6f0;
}

.seller-orders-hero .eyebrow {
  margin-bottom: 10px;
  padding: 7px 13px;
  border-radius: 999px;
}

.seller-orders-hero h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  line-height: 1.05;
}

.seller-orders-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 10px;
}

.seller-orders-stats span {
  display: grid;
  gap: 3px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid #dce6f1;
  border-radius: 10px;
  background: #fff;
  color: var(--color-text-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.seller-orders-stats strong {
  color: var(--color-accent);
  font-size: 1.05rem;
  line-height: 1.1;
  white-space: nowrap;
}

.seller-orders-workspace .seller-order-filter {
  display: flex;
  align-items: end;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.seller-orders-workspace .seller-order-filter-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 190px));
  gap: 10px;
}

.seller-orders-workspace .seller-order-filter .form-group {
  gap: 5px;
  margin-bottom: 0;
  color: var(--color-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.seller-orders-workspace .seller-order-filter input {
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
}

.seller-orders-workspace .seller-filter-icon {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
}

.seller-orders-lines {
  gap: 12px;
}

.seller-order-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce6f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.045);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.seller-order-card:hover {
  border-color: rgba(36, 87, 230, 0.28);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.seller-order-flat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  gap: 0;
  align-items: stretch;
}

.seller-order-main {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: none;
  border-radius: 0;
  background: #fff;
}

.seller-order-side {
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 16px;
  border: none;
  border-left: 1px solid #e2e9f2;
  border-radius: 0;
  background: #f8fbff;
}

.seller-order-headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.seller-order-headline h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.02rem;
  line-height: 1.2;
}

.seller-order-number {
  color: #55708f;
  font-size: 0.78rem;
  font-weight: 800;
}

.seller-order-status-pill,
.seller-order-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.seller-status-new {
  background: #fff4d6;
  color: #95620a;
}

.seller-status-confirmed,
.seller-status-packing {
  background: #e9f1ff;
  color: #2457e6;
}

.seller-status-shipped,
.seller-status-completed {
  background: #dcf7ea;
  color: #087443;
}

.seller-status-cancelled {
  background: #eef2f7;
  color: #667085;
}

.seller-status-default {
  background: #eef2f7;
  color: #475467;
}

.seller-order-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.seller-order-meta-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e3ebf5;
  border-radius: 8px;
  background: #fbfdff;
  color: #26364c;
  font-size: 0.82rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.seller-order-meta-grid small {
  color: var(--color-text-soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.seller-order-meta-grid a {
  color: #2457e6;
  font-weight: 700;
}

.seller-order-items-list {
  display: grid;
  gap: 7px;
}

.seller-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(105px, auto) minmax(54px, auto) minmax(98px, auto);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e3ebf5;
  border-radius: 9px;
  background: #fff;
  font-size: 0.84rem;
}

.seller-order-item-title {
  min-width: 0;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.35;
}

.seller-order-item-code {
  color: #1e3a8a;
  font-weight: 800;
  white-space: nowrap;
}

.seller-order-item-qty {
  color: var(--color-text-soft);
  white-space: nowrap;
}

.seller-order-item-price {
  color: #0f766e;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.seller-order-total-box {
  display: grid;
  gap: 5px;
}

.seller-order-total-box small {
  color: var(--color-text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.seller-order-total-box strong {
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.1;
  white-space: nowrap;
}

.seller-order-status-actions {
  display: grid;
  gap: 8px;
}

.seller-order-status-actions .btn {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
}

.seller-order-done {
  background: #eef2f7;
  color: #667085;
}

@media (max-width: 1180px) {
  .seller-orders-hero,
  .seller-order-flat {
    grid-template-columns: 1fr;
  }

  .seller-order-side {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 220px);
    align-items: center;
    border-top: 1px solid #e2e9f2;
    border-left: none;
  }

  .seller-orders-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .seller-orders-hero h2 {
    font-size: 1.55rem;
  }

  .seller-orders-stats,
  .seller-order-meta-grid,
  .seller-order-side {
    grid-template-columns: 1fr;
  }

  .seller-orders-workspace .seller-order-filter,
  .seller-orders-workspace .seller-order-filter-fields {
    width: 100%;
  }

  .seller-orders-workspace .seller-order-filter-fields {
    grid-template-columns: 1fr 1fr;
  }

  .seller-order-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .seller-order-item-price {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .seller-orders-workspace .seller-order-filter {
    align-items: stretch;
  }

  .seller-orders-workspace .seller-order-filter-fields {
    grid-template-columns: 1fr;
  }
}

/* Seller orders table/detail layout */
.seller-orders-pro {
  gap: 14px;
  padding: clamp(16px, 2.4vw, 24px);
}

.seller-orders-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.seller-orders-topbar .eyebrow {
  margin-bottom: 10px;
  padding: 7px 13px;
}

.seller-orders-topbar h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.08;
}

.seller-order-filter-pro {
  width: fit-content;
  max-width: 100%;
}

.seller-orders-table-shell {
  overflow: hidden;
  border: 1px solid #d9e3ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.045);
}

.seller-orders-table-head,
.seller-order-row-pro {
  display: grid;
  grid-template-columns: 145px 180px 1.35fr 150px 1.45fr;
  gap: 14px;
  align-items: center;
}

.seller-orders-table-head {
  padding: 13px 14px;
  border-bottom: 2px solid #f3a712;
  background: #fbfcfe;
  color: #404b5b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.seller-order-entry {
  border-bottom: 1px solid #f3a712;
}

.seller-order-entry:last-child {
  border-bottom: none;
}

.seller-order-row-pro {
  min-height: 54px;
  padding: 12px 14px;
  background: #eef3f8;
  color: #3d4a5c;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  list-style: none;
  transition: background 0.18s ease;
}

.seller-order-row-pro::-webkit-details-marker {
  display: none;
}

.seller-order-entry:nth-child(even) .seller-order-row-pro {
  background: #f8fafc;
}

.seller-order-row-pro:hover,
.seller-order-entry[open] .seller-order-row-pro {
  background: #e7f0f8;
}

.seller-order-row-pro strong {
  display: block;
  color: #283447;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

.seller-order-row-pro small {
  display: block;
  margin-top: 2px;
  color: #2f80d0;
  font-size: 0.74rem;
  font-weight: 400;
}

.seller-order-number-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2f80d0;
  font-weight: 700;
}

.seller-order-caret {
  color: #697b91;
  font-size: 1.05rem;
  transition: transform 0.18s ease;
}

.seller-order-entry[open] .seller-order-caret {
  transform: rotate(90deg);
}

.seller-order-status-text {
  display: inline-flex;
  padding: 0;
  background: transparent;
  font-weight: 700;
}

.seller-order-status-text.seller-status-new {
  color: #3f4652;
}

.seller-order-status-text.seller-status-confirmed,
.seller-order-status-text.seller-status-packing {
  color: #2457e6;
}

.seller-order-status-text.seller-status-shipped,
.seller-order-status-text.seller-status-completed {
  color: #087443;
}

.seller-order-status-text.seller-status-cancelled {
  color: #e54848;
}

.seller-order-sum-cell {
  color: #2d3748;
  font-weight: 700;
  white-space: nowrap;
}

.seller-order-detail-pro {
  border-top: 1px solid #dbe4ef;
  background: #fff;
}

.seller-order-products-pro {
  display: grid;
  gap: 0;
  padding: 14px;
  border-bottom: 1px solid #e2e9f2;
  background: #fff;
}

.seller-order-product-line {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) minmax(130px, auto) minmax(120px, auto);
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
}

.seller-order-product-line.seller-order-product-no-image {
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto) minmax(120px, auto);
}

.seller-order-product-line:last-child {
  border-bottom: none;
}

.seller-order-product-thumb {
  width: 58px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #dce6f1;
  border-radius: 8px;
  background: #f4f7fb;
  color: #60708a;
}

.seller-order-product-image {
  width: 58px;
  height: 48px;
  border: 1px solid #dce6f1;
  border-radius: 8px;
  object-fit: cover;
  background: #f4f7fb;
}

.seller-order-product-line strong {
  display: block;
  color: #12213a;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}

.seller-order-product-line span {
  display: block;
  margin-top: 3px;
  color: #5e7188;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
}

.seller-order-product-terms {
  color: #283447;
}

.seller-order-product-price {
  color: #172033;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.seller-order-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
}

.seller-order-detail-card {
  padding: 18px;
  background: #fbfcfe;
}

.seller-order-detail-card + .seller-order-detail-card {
  border-left: 1px solid #e2e9f2;
}

.seller-order-detail-card h3 {
  margin-bottom: 14px;
  color: #404b5b;
  font-size: 0.9rem;
  font-weight: 700;
}

.seller-order-detail-card dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.seller-order-detail-card dt {
  overflow: hidden;
  color: #5e7188;
  font-size: 0.82rem;
  font-weight: 400;
  white-space: nowrap;
}

.seller-order-detail-card dt::after {
  content: "";
  display: inline-block;
  width: 100%;
  margin-left: 6px;
  border-bottom: 1px dotted #c8d3df;
  transform: translateY(-4px);
}

.seller-order-detail-card dd {
  margin: 0;
  color: #283447;
  font-size: 0.86rem;
  font-weight: 600;
}

.seller-order-detail-card a {
  color: #2f80d0;
}

.seller-order-payment-card {
  background: #eef6fb;
}

.seller-order-detail-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #d7e3ee;
}

.seller-order-detail-actions form {
  min-width: 0;
}

.seller-order-detail-actions .btn {
  min-height: 44px;
  border-radius: 6px;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.seller-order-detail-actions .btn-primary {
  min-width: 148px;
  background: #39b85a;
  box-shadow: none;
}

.seller-order-detail-actions .btn-primary:hover {
  background: #2fa04d;
}

.seller-order-ship-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.seller-order-ttn-input {
  min-height: 44px;
  width: 100%;
  border: 1px solid #cfd9e7;
  border-radius: 6px;
  padding: 9px 11px;
  background: #fff;
  color: var(--color-text);
  font-size: 0.84rem;
}

.seller-order-ttn-input:focus {
  outline: none;
  border-color: #4b78ef;
  box-shadow: 0 0 0 3px rgba(75, 120, 239, 0.12);
}

.seller-order-detail-actions .btn-secondary {
  border: none;
  background: transparent;
  color: #2f80d0;
}

.seller-orders-preview .seller-orders-table-head,
.seller-orders-preview .seller-order-row-pro {
  grid-template-columns: 132px 150px minmax(160px, 1fr) 138px minmax(150px, 1fr);
  gap: 10px;
}

.seller-orders-preview .seller-orders-table-head {
  padding: 10px 12px;
}

.seller-orders-preview .seller-order-row-pro {
  min-height: 48px;
  padding: 10px 12px;
}

.seller-orders-preview .seller-order-detail-pro {
  background: #fff;
}

.seller-orders-preview .seller-order-products-pro {
  padding: 10px 12px;
}

.seller-orders-preview .seller-order-product-line {
  padding: 8px 0;
}

@media (max-width: 1180px) {
  .seller-orders-table-shell {
    overflow-x: auto;
  }

  .seller-orders-table-head,
  .seller-order-row-pro,
  .seller-order-detail-pro {
    min-width: 960px;
  }

  .seller-orders-preview .seller-orders-table-head,
  .seller-orders-preview .seller-order-row-pro,
  .seller-orders-preview .seller-order-detail-pro {
    min-width: 780px;
  }
}

@media (max-width: 760px) {
  .seller-orders-topbar,
  .seller-order-detail-grid {
    grid-template-columns: 1fr;
  }

  .seller-order-detail-card + .seller-order-detail-card {
    border-top: 1px solid #e2e9f2;
    border-left: none;
  }

  .seller-order-product-line {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .seller-order-product-line.seller-order-product-no-image {
    grid-template-columns: 1fr;
  }

  .seller-order-product-terms,
  .seller-order-product-price {
    grid-column: 2;
    text-align: left;
  }

  .seller-order-product-no-image .seller-order-product-terms,
  .seller-order-product-no-image .seller-order-product-price {
    grid-column: 1;
  }

  .seller-order-detail-card dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .seller-order-detail-card dt::after {
    display: none;
  }

  .seller-order-detail-actions {
    flex-direction: column;
  }

  .seller-order-ship-form {
    grid-template-columns: 1fr;
  }
}

.catalog-code-chips a:hover {
  border-color: var(--color-primary);
  background: #fff;
}

.catalog-code-chips strong {
  font-size: 0.95rem;
    font-weight: 600;
}

.catalog-code-chips small {
  color: var(--color-text-soft);
  font-size: 0.78rem;
}

.catalog-seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.catalog-seo-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--color-surface-muted);
  color: var(--color-text);
  font-size: 0.84rem;
  font-weight: 700;
}

.catalog-compact,
.catalog-results-shell {
  overflow-x: hidden;
}

.cart-seller-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.cart-seller-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.cart-seller-head span {
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.order-success-card {
  max-width: 720px;
  padding: 34px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.order-success-card h1 {
  margin: 8px 0 10px;
}

.policy-page {
  padding-top: 24px;
}

.policy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  margin-bottom: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 94, 255, 0.08), rgba(31, 157, 87, 0.08)),
    #fff;
}

.policy-hero h1 {
  max-width: 860px;
  margin: 12px 0 14px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
}

.policy-hero p {
  max-width: 840px;
  color: var(--color-text-soft);
}

.policy-updated {
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.policy-contact-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
}

.policy-contact-box span {
  color: var(--color-text-soft);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.policy-contact-box a {
  color: var(--color-primary);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.policy-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.policy-summary-card {
  min-height: 170px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.policy-summary-card span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f5ee;
  color: #166534;
  font-weight: 900;
}

.policy-summary-card h2 {
  font-size: 1rem;
  line-height: 1.25;
}

.policy-summary-card p {
  color: var(--color-text-soft);
  font-size: 0.93rem;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.policy-side {
  position: sticky;
  top: 24px;
  padding: 22px;
  border-radius: 8px;
}

.policy-side h2 {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.policy-check-list {
  display: grid;
  gap: 12px;
}

.policy-check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--color-text-soft);
}

.policy-check-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-success);
}

.policy-content {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 8px;
}

.policy-content section + section {
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}

.policy-content h2 {
  margin-bottom: 10px;
  color: var(--color-accent);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.policy-content p,
.policy-content li {
  color: var(--color-text-soft);
}

.policy-content p + p,
.policy-content p + ul,
.policy-content ul + p {
  margin-top: 10px;
}

.policy-content ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  list-style: disc;
}

.policy-content a {
  color: var(--color-primary);
  font-weight: 800;
}

.order-success-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.order-success-facts span {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 8px;
  background: var(--color-surface-muted);
}

.summary-actions {
  margin-top: 12px;
}

.vin-result-card {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.vin-result-card span,
.vin-result-card small {
  color: rgba(255, 255, 255, 0.72);
}

.vin-result-card strong {
  font-size: 1.05rem;
}

.vin-result-card p {
  margin: 0;
  color: #fff;
}
