/* Accessories Order — namespaced. Do not reuse these classes on the main site. */
body:has(#ao-root) .navbar,
body:has(#ao-root) .navbar_component,
body:has(#ao-root) .navbar_wrapper,
body:has(#ao-root) .w-nav,
body:has(#ao-root) .nav-bar,
body:has(#ao-root) footer,
body:has(#ao-root) .footer,
body:has(#ao-root) .footer_component,
body:has(#ao-root) .section_footer,
body:has(#ao-root) .w-nav-overlay {
  display: none !important;
}
body:has(#ao-root) {
  margin: 0;
  background: #fff;
}

.ao-page {
  --ao-red: #cc1b1c;
  --ao-text: #1a1a1a;
  --ao-muted: #6b6b6b;
  --ao-line: #e4e4e4;
  --ao-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  min-height: 100vh;
  margin: 0;
  color: var(--ao-text);
  background: #fff;
  font-family: var(--ao-font);
  line-height: 1.45;
}
.ao-page *,
.ao-page *::before,
.ao-page *::after { box-sizing: border-box; }

.ao-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--ao-line);
  background: #fff;
}
.ao-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.ao-wordmark {
  color: var(--ao-red);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
}
.ao-logo { height: 40px; width: auto; max-width: 220px; display: block; }
.ao-bar-actions { display: flex; align-items: center; gap: 10px; }
.ao-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ao-line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.ao-cart-btn svg { width: 20px; height: 20px; }
.ao-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ao-red);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.ao-badge[hidden] { display: none; }

.ao-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}
.ao-kicker {
  margin: 0 0 6px;
  color: var(--ao-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ao-title { margin: 0 0 8px; font-size: 32px; line-height: 1.15; }
.ao-lead { margin: 0 0 28px; color: var(--ao-muted); max-width: 640px; }

.ao-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.ao-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--ao-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.ao-card-media {
  height: 220px;
  background: #fafafa center / contain no-repeat;
  border-bottom: 1px solid var(--ao-line);
}
.ao-card-body { display: flex; flex-direction: column; padding: 18px 20px 20px; flex: 1; }
.ao-card-title { margin: 0 0 6px; font-size: 22px; }
.ao-card-kicker {
  margin: 0 0 8px;
  color: var(--ao-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ao-card-copy { margin: 0 0 16px; color: #333; font-size: 14px; min-height: 2.8em; }
.ao-card-body > .ao-card-actions { margin-top: auto; }
.ao-card-actions { display: flex; flex-direction: column; gap: 8px; }
.ao-card-actions .ao-btn { margin-top: 0; }
.ao-details-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ao-muted);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.ao-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ao-red);
  border-radius: 6px;
  background: #fff;
  color: var(--ao-red);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ao-btn:hover { background: #fff5f5; }
.ao-btn-solid {
  background: var(--ao-red);
  color: #fff;
}
.ao-btn-solid:hover { background: #b11718; }
.ao-btn-ghost {
  border-color: var(--ao-line);
  color: var(--ao-text);
}
.ao-btn[disabled] { opacity: .55; cursor: not-allowed; }

.ao-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.ao-detail-img {
  min-height: 360px;
  border: 1px solid var(--ao-line);
  border-radius: 8px;
  background: #fafafa center / contain no-repeat;
}
.ao-spec { margin: 0; padding: 0 0 0 18px; color: #333; }
.ao-spec li { margin: 0 0 6px; }
.ao-field { margin: 14px 0; }
.ao-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.ao-input, .ao-select, .ao-textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
}
.ao-textarea { min-height: 88px; resize: vertical; }
.ao-qty { display: flex; align-items: center; gap: 10px; }
.ao-qty button {
  width: 36px; height: 36px; border: 1px solid var(--ao-line); background: #fff; cursor: pointer; border-radius: 6px;
}
.ao-actions { display: flex; gap: 10px; margin-top: 18px; }

.ao-cart-list { display: flex; flex-direction: column; gap: 14px; margin: 0 0 28px; padding: 0; list-style: none; }
.ao-cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--ao-line);
  border-radius: 8px;
}
.ao-cart-item img { width: 88px; height: 72px; object-fit: contain; background: #fafafa; }
.ao-cart-item h3 { margin: 0 0 4px; font-size: 16px; }
.ao-cart-item p { margin: 0; color: var(--ao-muted); font-size: 13px; }
.ao-remove { border: 0; background: none; color: var(--ao-red); cursor: pointer; font-size: 13px; }
.ao-form {
  border: 1px solid var(--ao-line);
  border-radius: 8px;
  padding: 20px;
}
.ao-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ao-error { color: #b00020; font-size: 13px; min-height: 16px; margin: 4px 0 0; }
.ao-hint { color: var(--ao-muted); font-size: 13px; margin: 6px 0 0; }
.ao-ok { color: #157347; }
.ao-empty { color: var(--ao-muted); padding: 24px 0; }

.ao-thanks {
  max-width: 640px;
  margin: 12px auto 0;
  text-align: center;
}
.ao-thanks-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #157347;
  color: #fff;
}
.ao-thanks-mark svg { width: 28px; height: 28px; }
.ao-thanks .ao-lead { margin-left: auto; margin-right: auto; }
.ao-thanks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.ao-thanks-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--ao-line);
  border-radius: 8px;
}
.ao-thanks-item img { width: 72px; height: 56px; object-fit: contain; background: #fafafa; }
.ao-thanks-item h3 { margin: 0 0 2px; font-size: 15px; }
.ao-thanks-item p { margin: 0; color: var(--ao-muted); font-size: 13px; }
.ao-thanks-qty { color: var(--ao-text); font-size: 14px; font-weight: 700; white-space: nowrap; }
.ao-thanks-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin: 28px auto 0;
}
.ao-thanks-actions .ao-btn { margin-top: 0; }

.ao-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  padding: 10px 14px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.ao-toast.is-on { opacity: 1; }

@media (max-width: 860px) {
  .ao-grid, .ao-detail, .ao-form-grid, .ao-cart-item, .ao-thanks-item { grid-template-columns: 1fr; }
  .ao-card-media, .ao-detail-img { height: 220px; min-height: 220px; }
  .ao-bar { padding: 12px 16px; }
  .ao-wrap { padding: 20px 16px 64px; }
  .ao-title { font-size: 26px; }
}
