/* ===========================================================
   Peptide Sourcing Hub — Public site CSS
   =========================================================== */

:root {
  --color-bg: #fafbfc;
  --color-surface: #ffffff;
  --color-border: #e4e7eb;
  --color-text: #0f1419;
  --color-text-muted: #5b6470;
  --color-primary: #1c4ed8;
  --color-primary-dark: #163bb5;
  --color-accent: #0d9488;
  --color-ok: #16a34a;
  --color-warn: #d97706;
  --color-error: #dc2626;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --control-height: 42px;
  --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.05);
  --shadow: 0 4px 14px rgba(15, 20, 25, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 20, 25, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif,
          "Apple Color Emoji", "Segoe UI Emoji";
  --container-max: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: 'SF Mono', Menlo, Monaco, monospace; font-size: 0.9em; background: #f1f3f5; padding: 1px 6px; border-radius: 4px; }
.legal-page { padding-top: 48px; padding-bottom: 72px; }
.legal-page h1 { margin-bottom: 4px; }
.legal-page h2 { margin-top: 28px; font-size: 20px; }
.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  font: inherit;
}
.footer-link-button:hover { text-decoration: underline; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

input, select, textarea, button { font: inherit; }
input, select, textarea {
  height: var(--control-height);
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.4;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
/* Unified form-control: every form field looks the same regardless of
   type (text/email/password/search/select/textarea). Selects get a
   custom chevron background; search inputs lose the browser-default
   clear button so they read as plain text fields. */
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235b6470'><path d='M4 6l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
  padding-right: 32px;
  cursor: pointer;
}
textarea {
  height: auto;
  min-height: calc(var(--control-height) * 2);
  padding: 8px 12px;
  resize: vertical;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 0;
  border-radius: 4px;
  appearance: auto;
  -webkit-appearance: checkbox;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 10px 0 14px;
}
.checkbox-row input { margin-top: 2px; }
.legal-consent a { font-weight: 600; }

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  min-height: 72px;
  flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--color-text); flex: 0 0 auto; min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 38px; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.brand-name { font-size: 16px; line-height: 1.2; white-space: nowrap; }
.mobile-menu-toggle { display: none; }
.primary-nav { display: flex; gap: 18px; align-items: center; flex: 0 0 auto; margin-left: 2px; min-width: 0; }
.primary-nav a { color: var(--color-text); font-weight: 600; white-space: nowrap; line-height: 1; }
.primary-nav a:hover { color: var(--color-primary); text-decoration: none; }
.has-account .primary-nav { gap: 12px; font-size: 14px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: 1 1 auto; min-width: 0; }
.header-tools, .account-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.account-actions { flex: 0 0 auto; }
/* When the user is logged in, the right side of the header gets crowded
 * with: lang select + search + user chip + admin/sales console button +
 * sign-out form. The search input shrinks so the buttons don't overlap
 * the chip and the whole bar stays in a single row on desktop.
 */
.has-account .header-search { min-width: 0; flex: 1 1 140px; max-width: 220px; }
.has-account .account-actions .user-chip {
  max-width: 120px; overflow: hidden; text-overflow: ellipsis;
}
.has-account .primary-nav { gap: 14px; }
.header-search {
  display: flex; align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  height: var(--control-height);
  background: #fff;
  min-width: 176px;
  max-width: 300px;
  flex: 0 1 220px;
}
.header-search input { border: 0; outline: 0; padding: 0 4px; font-size: 14px; width: 100%; background: transparent; min-height: 0; height: 100%; }
.header-search button { background: transparent; border: 0; cursor: pointer; padding: 4px; color: var(--color-text-muted); width: 30px; height: 30px; }
.user-chip {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 0 12px;
  height: var(--control-height);
  display: inline-flex;
  align-items: center;
  background: #f3f6fa;
  border-radius: 999px;
  white-space: nowrap;
}

.lang-switcher select {
  height: var(--control-height);
  min-height: var(--control-height);
  padding: 0 34px 0 12px;
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  height: var(--control-height);
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { background: #f1f3f5; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.inline-form { display: inline-flex; margin: 0; }
.link-btn { background: transparent; border: 0; color: var(--color-primary); cursor: pointer; font-family: inherit; font-size: inherit; padding: 0; }
.link-btn:hover { text-decoration: underline; }
.link { color: var(--color-primary); font-weight: 500; }

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 20, 25, 0.42);
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(86vw, 360px);
  height: 100vh;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}
.mobile-drawer-close { color: var(--color-text); font-size: 28px; }
.drawer-search {
  display: flex;
  align-items: center;
  height: 46px;
  margin: 18px 0 14px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.drawer-search input {
  flex: 1;
  border: 0;
  outline: 0;
  min-height: 0;
  height: 100%;
  background: transparent;
}
.drawer-search button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
}
.drawer-label {
  display: block;
  margin: 0 0 6px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.drawer-select {
  width: 100%;
  height: 44px;
  margin-bottom: 18px;
  padding: 0 12px;
}
.drawer-nav {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.drawer-nav a {
  padding: 13px 0;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 600;
}
.drawer-nav a:hover { color: var(--color-primary); text-decoration: none; }
.drawer-account {
  display: grid;
  gap: 10px;
  padding-top: 18px;
}
body.menu-open { overflow: hidden; }
body.menu-open .chat-widget { display: none; }

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5ff 100%);
  padding: 56px 0;
  border-bottom: 1px solid var(--color-border);
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero-text .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.hero-text h1 { font-size: 38px; line-height: 1.2; margin: 0 0 16px; font-weight: 700; }
.hero-text .lead { font-size: 17px; color: var(--color-text-muted); margin: 0 0 28px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 28px; margin-top: 36px; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-size: 16px; color: var(--color-text); }
.trust-item span { font-size: 12px; color: var(--color-text-muted); }

.hero-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card-title { padding: 14px 20px; border-bottom: 1px solid var(--color-border); font-weight: 600; font-size: 14px; background: #f8fafc; }
.hero-card-body { padding: 18px 20px; }
.coa-line { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--color-border); font-size: 14px; }
.coa-line:last-of-type { border-bottom: 0; }
.coa-line span { color: var(--color-text-muted); }
.ok { color: var(--color-ok); font-weight: 600; }
.warn { color: var(--color-warn); font-weight: 600; }
.hero-card-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border); font-size: 12px; color: var(--color-text-muted); }

.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.section-head h1, .section-head h2 { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.split-card h3 { margin-top: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  color: var(--color-text);
  transition: all 0.15s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.product-card-img { aspect-ratio: 4/3; background: #f1f3f5; display: flex; align-items: center; justify-content: center; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 14px 16px 18px; }
.product-card-body .badge { display: inline-block; font-size: 11px; color: var(--color-primary); background: #e0e7ff; padding: 2px 8px; border-radius: 999px; text-transform: capitalize; }
.product-card-body h3 { font-size: 15px; margin: 8px 0 4px; font-weight: 600; }
.product-card-body .cas { font-size: 12px; color: var(--color-text-muted); font-family: 'SF Mono', monospace; }
.product-card-body .purity { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }
.product-card-body .card-desc { font-size: 13px; color: var(--color-text-muted); margin-top: 8px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700;
  color: var(--color-primary);
  background: linear-gradient(135deg, #e0e7ff, #f1f5ff);
}
.placeholder-lg { font-size: 64px; }

.plp-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
.plp-filters {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  align-self: start;
  position: sticky; top: 80px;
}
.filter-group { margin-bottom: 16px; }
.filter-group label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-text-muted); }
.filter-group input, .filter-group select { width: 100%; padding: 8px 10px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; background: #fff; }

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }

.empty { background: #fff; border: 1px dashed var(--color-border); border-radius: var(--radius); padding: 60px 20px; text-align: center; }

.breadcrumb { font-size: 13px; color: var(--color-text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb span { margin: 0 6px; }
.pdp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pdp-main-img { aspect-ratio: 1/1; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pdp-main-img img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pdp-thumbs img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.pdp-info .badge { display: inline-block; font-size: 11px; color: var(--color-primary); background: #e0e7ff; padding: 2px 8px; border-radius: 999px; text-transform: capitalize; }
.pdp-info h1 { font-size: 28px; margin: 8px 0 18px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.spec-table th, .spec-table td { padding: 8px 12px; border-bottom: 1px solid var(--color-border); text-align: left; font-size: 14px; }
.spec-table th { width: 160px; color: var(--color-text-muted); font-weight: 500; }
.pdp-cta-row { display: flex; gap: 10px; margin: 24px 0; flex-wrap: wrap; }
.certificate-section { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px 20px; margin-top: 14px; }
.certificate-section h3 { margin-top: 0; font-size: 16px; }
.cert-list { list-style: none; padding: 0; margin: 0; }
.cert-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.cert-list li:last-child { border-bottom: 0; }
.muted { color: var(--color-text-muted); }
.small { font-size: 12px; }

.auth-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 36px; margin: 56px auto; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 8px; font-size: 26px; }
.auth-divider { text-align: center; margin: 20px 0; position: relative; color: var(--color-text-muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--color-border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-divider span { background: #fff; padding: 0 12px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }
.alert { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 12px; }
.alert-error { background: #fef2f2; color: var(--color-error); border: 1px solid #fecaca; }
.hidden { display: none !important; }

.site-footer { background: #0f1419; color: #cbd5e1; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 48px 24px 32px; }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: #cbd5e1; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-contact { color: #cbd5e1; font-size: 13px; margin: 6px 0; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 16px 0; font-size: 12px; color: #94a3b8; }
.footer-bottom .container { display: flex; justify-content: space-between; padding: 0 24px; }

.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 100; }
.chat-toggle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.chat-toggle:hover { transform: scale(1.05); }
.chat-unread {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  border: 2px solid #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.chat-panel {
  position: absolute;
  right: 0; bottom: 70px;
  width: 360px; max-width: calc(100vw - 36px);
  height: 480px; max-height: calc(100vh - 120px);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: var(--color-primary);
  color: #fff;
}
.chat-head strong { font-size: 14px; }
.icon-btn { background: transparent; border: 0; color: inherit; font-size: 22px; cursor: pointer; line-height: 1; padding: 0 4px; }
.chat-status {
  padding: 8px 14px;
  border-bottom: 1px solid var(--color-border);
  background: #f8fafc;
  color: var(--color-text-muted);
  font-size: 12px;
}
.chat-status-online { color: #166534; background: #f0fdf4; }
.chat-status-connecting { color: #92400e; background: #fffbeb; }
.chat-status-offline,
.chat-status-error { color: #991b1b; background: #fef2f2; }
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  background: #f8fafc;
}
.chat-offline-actions {
  padding: 8px 12px;
  background: #fef2f2;
  color: #991b1b;
  border-top: 1px solid #fecaca;
  font-size: 12px;
}
.chat-offline-actions a { color: #991b1b; font-weight: 700; text-decoration: underline; }
.chat-form {
  display: flex;
  padding: 10px;
  border-top: 1px solid var(--color-border);
  background: #fff;
  gap: 6px;
}
.chat-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
}
.chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.chat-msg-visitor { background: var(--color-primary); color: #fff; align-self: flex-end; flex-direction: row-reverse; border-bottom-right-radius: 4px; }
.chat-msg-agent { background: #fff; color: var(--color-text); align-self: flex-start; border: 1px solid var(--color-border); border-bottom-left-radius: 4px; }
.chat-msg-system { background: #fef3c7; color: #92400e; align-self: center; font-size: 13px; max-width: 95%; text-align: center; }
.chat-msg-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--color-bg-muted, #f1f5f9); overflow: hidden; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.chat-msg-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-msg-avatar-fallback { background: var(--color-bg-muted, #f1f5f9); }

@media (max-width: 920px) {
  .header-inner { flex-wrap: wrap; gap: 14px; }
  .brand { min-width: 0; }
  .header-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .header-tools { flex: 1 1 100%; }
  .account-actions { flex-wrap: wrap; }
  .hero-inner { grid-template-columns: 1fr; }
  .plp-layout { grid-template-columns: 1fr; }
  .plp-filters { position: static; }
  .pdp-layout { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .primary-nav { order: 3; width: 100%; gap: 16px; overflow-x: auto; padding-bottom: 2px; }
  .header-search { min-width: 0; max-width: none; }
}
@media (max-width: 1280px) and (min-width: 921px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .header-inner { gap: 14px; }
  .brand { min-width: 186px; }
  .brand-name { font-size: 15px; }
  .primary-nav { gap: 14px; }
  .header-search { min-width: 150px; flex-basis: 180px; }
  .user-chip { max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
  .account-actions .btn { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 920px) {
  .site-header { position: sticky; }
  .header-inner { min-height: 68px; padding: 10px 16px; gap: 12px; justify-content: space-between; flex-wrap: nowrap; }
  .brand { min-width: 0; }
  .brand-name { white-space: nowrap; max-width: calc(100vw - 136px); overflow: hidden; text-overflow: ellipsis; }
  .mobile-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-text);
    font-size: 24px;
    line-height: 1;
  }
  .mobile-menu-toggle span { transform: translateY(-1px); }
  .site-header .primary-nav,
  .site-header .header-actions { display: none; }
  .hero { padding: 44px 0; }
}

@media (max-width: 560px) {
  .hero-text h1 { font-size: 28px; }
  .section { padding: 36px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .chat-widget { right: 16px; bottom: 16px; }
  .chat-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 84px;
    width: auto;
    max-width: none;
    height: min(560px, calc(100vh - 110px));
  }
}
