:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7f8;
  --text: #1f2329;
  --muted: #8a9099;
  --muted-strong: #5c6470;
  --brand: #ff4400;
  --brand-strong: #e63c00;
  --brand-soft: #fff3ee;
  --border: #ededed;
  --border-strong: #e2e5e9;
  --radius: 10px;
  --shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Noto Sans SC", "Noto Sans Arabic", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

img {
  max-width: 100%;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  border-block-end: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.8rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
  color: var(--brand);
}

.nav {
  display: flex;
  gap: 1.25rem;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

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

.header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.account-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.account-link {
  color: var(--muted-strong);
}

.account-link:hover {
  color: var(--brand);
}

.account-link-strong {
  color: var(--brand);
  font-weight: 600;
}

.logout-form {
  margin: 0;
}

.account-logout {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--muted-strong);
  cursor: pointer;
}

.account-logout:hover {
  color: var(--brand);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  color: var(--text);
  font-size: 0.9rem;
  background: #fff;
}

.cart-link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding-inline: 0.3rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.lang-switch select {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
}

main {
  flex: 1;
}

.messages {
  margin-block-start: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.message {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.92rem;
}

.message-success {
  border-color: rgba(22, 163, 74, 0.3);
  background: #f0fdf4;
  color: #15803d;
}

.message-error {
  border-color: rgba(220, 38, 38, 0.3);
  background: #fef2f2;
  color: #b91c1c;
}

.message-warning {
  border-color: rgba(217, 119, 6, 0.3);
  background: #fffbeb;
  color: #b45309;
}

.message-info {
  color: var(--muted-strong);
}

.hero {
  padding-block: clamp(2.25rem, 5vw, 4rem);
}

.hero-home {
  padding-block-end: 1.5rem;
}

.hero-inner {
  max-width: 820px;
}

.eyebrow {
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-block-end: 0.75rem;
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-block: 0 1rem;
}

h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  margin-block: 0 0.75rem;
}

h3 {
  margin-block: 0 0.5rem;
  font-size: 1rem;
}

.lead {
  color: var(--muted-strong);
  font-size: 1rem;
  margin-block: 0.35rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

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

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--muted-strong);
  background: #fff;
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
}

.currency-note {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: baseline;
  color: var(--muted-strong);
  border: 1px dashed #ffcdb8;
  background: var(--brand-soft);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
}

.currency-note strong {
  color: var(--brand);
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 0.75rem 1.25rem;
}

.home-categories {
  padding-block-start: 1.1rem;
}

.chip {
  border: 1px solid transparent;
  background: var(--surface-2);
  border-radius: 6px;
  padding: 0.32rem 0.8rem;
  color: var(--muted-strong);
  font-size: 0.87rem;
}

.chip:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.chip-active {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.chip-active:hover {
  background: var(--brand-strong);
  color: #fff;
}

.section {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
}

.section-muted {
  background: #fafafa;
  border-block: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-block-end: 1rem;
}

.section-head h2 {
  position: relative;
  padding-inline-start: 0.75rem;
}

.section-head h2::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0.35em 0.3em;
  width: 4px;
  border-radius: 2px;
  background: var(--brand);
}

.section-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.text-link {
  color: var(--brand);
  font-size: 0.88rem;
}

.text-link:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.page-head {
  padding-block: 1.75rem 0.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(182px, 1fr));
  gap: 1.4rem 0.8rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.1);
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #f7f8fa;
  border-radius: 8px;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}

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

.product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(255, 68, 0, 0.35);
  background: linear-gradient(135deg, #f7f8fa, #eceef1);
}

.product-placeholder.large {
  aspect-ratio: 4 / 3;
  font-size: 4rem;
}

.product-badge {
  position: absolute;
  inset-block-start: 0.55rem;
  inset-inline-start: 0.55rem;
  background: linear-gradient(90deg, #ff5a1f, #ff2d00);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.14rem 0.42rem;
}

.product-body {
  padding: 0.6rem 0.15rem 0.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.product-category {
  color: var(--brand);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  margin: 0;
}

.product-body h3 {
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.product-body h3 a:hover {
  color: var(--brand);
}

.product-model {
  color: var(--muted);
  font-size: 0.74rem;
  margin: 0;
}

.product-summary {
  color: var(--brand);
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-block-start: 0.35rem;
}

.price {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.price-currency {
  font-size: 0.78em;
  font-weight: 700;
  margin-inline-end: 0.05em;
}

.moq {
  color: var(--muted);
  font-size: 0.74rem;
}

.product-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 0.08rem 0.45rem;
  border-radius: 4px;
  background: #eefaf1;
  color: #15803d;
}

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

.out-of-stock {
  background: #fef2f2;
  color: #b91c1c;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.product-tag {
  font-size: 0.7rem;
  line-height: 1.4;
  color: #b45309;
  background: #fffaf0;
  border: 1px solid #ffe3b8;
  border-radius: 3px;
  padding: 0 0.32rem;
  white-space: nowrap;
}

.product-supplier {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-block-start: auto;
  padding-block-start: 0.45rem;
  border-block-start: 1px solid var(--border);
  color: var(--muted-strong);
  font-size: 0.74rem;
  min-width: 0;
}

.product-supplier span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-supplier:hover {
  color: var(--brand);
}

.supplier-badge {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  background: #2b3a4d;
  border-radius: 2px;
  padding: 0 0.28rem;
  line-height: 1.5;
}

.product-actions {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  margin-block-start: 0.45rem;
}

.product-actions form {
  flex: 1 1 auto;
  display: flex;
  min-width: 0;
}

.product-actions .btn {
  white-space: nowrap;
  padding: 0.36rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.product-actions form .btn {
  flex: 1;
  width: 100%;
}

.product-actions > .btn {
  flex: 0 0 auto;
  color: var(--muted-strong);
}

.product-actions > .btn:hover {
  color: var(--brand);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-strip > div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 1rem 1.15rem;
}

.feature-strip h3 {
  font-size: 0.92rem;
}

.feature-strip p {
  color: var(--muted);
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
  padding-block-start: 1.1rem;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.detail-media {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.detail-media img {
  display: block;
  width: 100%;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.detail-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-block-start: 0.5rem;
}

.sku-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-block: 0.5rem;
}

.sku-row {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.sku-main {
  flex: 1 1 220px;
  min-width: 0;
}

.sku-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-block-start: 0.35rem;
}

.sku-specs span {
  font-size: 0.73rem;
  color: var(--muted-strong);
  background: #fff;
  border: 1px solid var(--border-strong);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}

.sku-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.sku-add {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sku-add input {
  width: 4.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 6px;
  padding: 0.6rem 0.7rem;
  font: inherit;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(255, 68, 0, 0.25);
  border-color: var(--brand);
  outline-offset: 1px;
}

.sku-add input {
  width: 4.5rem;
}

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

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
  background: var(--surface);
}

.cart-thumb {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
}

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

.cart-main h3 {
  font-size: 1rem;
}

.cart-qty {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.cart-qty form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-line-total {
  text-align: end;
}

.stock-warning {
  color: #b45309;
  font-size: 0.8rem;
  margin-block: 0.25rem 0;
}

.cart-summary {
  position: sticky;
  inset-block-start: 90px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.summary-row .price {
  font-size: 1.1rem;
}

.summary-note {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0;
}

.link-button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  padding: 0;
  text-decoration: underline;
}

.link-button:hover {
  color: var(--brand);
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.form-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--surface);
}

.auth-section {
  padding-block: clamp(2rem, 5vw, 3.25rem);
}

.auth-container {
  max-width: 460px;
}

.auth-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.05);
}

.auth-card h1 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-block-end: 0.4rem;
}

.auth-lead {
  color: var(--muted);
  font-size: 0.9rem;
  margin-block: 0 0.5rem;
}

.auth-form {
  margin-block-start: 1.25rem;
}

.auth-form .field {
  margin-block-end: 0.85rem;
}

.auth-form .errorlist {
  margin-block-start: 0.3rem;
}

.auth-submit {
  width: 100%;
  margin-block-start: 0.35rem;
}

.auth-switch {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  margin-block: 1rem 0;
}

.auth-switch a,
.account-page-links a {
  color: var(--brand);
}

.account-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.88rem;
  margin-block: 0.75rem 0;
  background: var(--surface-2);
}

.account-meta dt {
  color: var(--muted);
}

.account-meta dd {
  margin: 0;
  word-break: break-all;
}

.account-page-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-block-start: 1.1rem;
  font-size: 0.9rem;
}

.account-container {
  max-width: 880px;
  display: grid;
  gap: 1.5rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-heading h2 {
  font-size: 1.15rem;
  margin: 0;
}

.muted-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.account-history .summary-note {
  margin-block: 0.4rem 0.9rem;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding-block: 0.75rem;
  border-block-start: 1px solid var(--border);
}

.history-main,
.history-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.history-ref {
  font-weight: 600;
  color: var(--brand);
  word-break: break-all;
}

.history-date,
.history-messages {
  color: var(--muted);
  font-size: 0.82rem;
}

.history-link {
  color: var(--brand);
  font-size: 0.85rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  border: 1px solid var(--border-strong);
  color: var(--muted-strong);
  background: var(--surface-2);
  white-space: nowrap;
}

.status-new {
  color: #b45309;
  border-color: #fde68a;
  background: #fffbeb;
}

.status-contacted {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.empty-state-compact {
  padding: 1.25rem;
}

.empty-state-compact p {
  margin-block-start: 0;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  text-align: start;
  padding: 0.55rem 0.6rem;
  border-block-end: 1px solid var(--border);
  white-space: nowrap;
}

.data-table thead th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
}

.data-table tfoot th {
  border-block-end: 0;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-block: 0.8rem 1rem;
}

.chat-message {
  max-width: 82%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  background: var(--surface-2);
}

.chat-customer {
  align-self: flex-end;
  border-color: #ffd0bd;
  background: var(--brand-soft);
}

.chat-staff {
  align-self: flex-start;
  background: #fff;
}

.chat-meta {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.75rem;
  margin-block-end: 0.2rem;
}

.chat-body {
  margin: 0;
  font-size: 0.9rem;
  white-space: pre-line;
  word-break: break-word;
}

.chat-form {
  border-block-start: 1px solid var(--border);
  padding-block-start: 1rem;
}

.inquiry-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.account-back {
  font-size: 0.9rem;
}

.account-back a {
  color: var(--brand);
}

.inquiry-product {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border: 1px solid #ffd0bd;
  background: var(--brand-soft);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  margin-block-end: 1rem;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.inquiry-product a {
  color: var(--brand);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-block-end: 1rem;
}

.field label {
  font-size: 0.88rem;
  color: var(--muted-strong);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-errors {
  border: 1px solid rgba(220, 38, 38, 0.3);
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  margin-block-end: 1rem;
  font-size: 0.88rem;
}

.errorlist {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #dc2626;
  font-size: 0.8rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.8rem;
  margin-block: 0.75rem 0;
}

.inquiry-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.inquiry-side h2 {
  font-size: 1.05rem;
  margin-block-start: 0.5rem;
}

.inquiry-items,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.inquiry-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-block-end: 1px solid var(--border);
  padding-block-end: 0.45rem;
  font-size: 0.9rem;
}

.contact-list a {
  color: var(--brand);
  font-size: 0.9rem;
}

.success-card {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 2.25rem 1.5rem;
}

.success-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-inline: auto;
  margin-block-end: 1rem;
  background: #ecfdf5;
  color: #15803d;
  font-size: 1.9rem;
  font-weight: 800;
}

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

.success-card .hero-actions {
  justify-content: center;
}

.consult-widget {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 40;
  max-width: calc(100vw - 2rem);
}

.consult-widget summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(255, 68, 0, 0.35);
}

.consult-widget summary::-webkit-details-marker {
  display: none;
}

.consult-widget[open] summary {
  border-radius: 10px 10px 0 0;
  width: 100%;
}

.consult-panel {
  width: min(320px, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-block-start: none;
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
}

.consult-panel p {
  margin: 0;
  color: var(--muted-strong);
}

.consult-link {
  color: var(--brand);
  font-size: 0.85rem;
  word-break: break-all;
}

.site-footer {
  border-block-start: 1px solid var(--border);
  padding-block: 1.25rem;
  color: var(--muted);
  font-size: 0.86rem;
  margin-block-start: auto;
  background: #fafafa;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-inner a:hover {
  color: var(--brand);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  white-space: nowrap;
}

[dir="rtl"] .brand {
  letter-spacing: 0;
}

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

  .cart-summary {
    position: static;
  }
}

@media (max-width: 720px) {
  .header-inner {
    gap: 0.75rem;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem 0.6rem;
  }

  .product-body h3 {
    font-size: 0.82rem;
  }

  .product-actions .btn {
    padding: 0.38rem 0.45rem;
    font-size: 0.75rem;
  }

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

  .cart-thumb {
    width: 72px;
  }

  .cart-qty,
  .cart-line-total {
    grid-column: 2;
    text-align: start;
  }

  .chat-message {
    max-width: 100%;
  }

  .history-meta {
    justify-content: flex-start;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 1.05rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

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

  .product-summary {
    display: none;
  }

  .product-actions > .btn {
    display: none;
  }

  .consult-widget {
    inset-block-end: 0.9rem;
    inset-inline-end: 0.9rem;
  }
}
