/* Interaction layers are scoped so the source design remains unchanged. */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #0d6874;
  outline-offset: 4px;
}
footer a:focus-visible { outline-color: #e5a93c; }
.nav-toggle { display: none; }
.cr-dialog-open { overflow: hidden; }
.cr-dialog {
  position: fixed;
  inset: 0;
  width: min(650px, calc(100% - 32px));
  max-height: min(85dvh, 820px);
  margin: auto;
  padding: 28px;
  overflow-y: auto;
  color: #0f1e36;
  background: #faf6ee;
  border: 1px solid #d99b26;
  border-radius: 20px;
  box-shadow: 0 24px 100px #0f1e3660;
}
.cr-dialog::backdrop { background: #0f1e36a6; backdrop-filter: blur(4px); }
.cr-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.cr-dialog-title { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 27px; font-weight: 700; line-height: 1.3; }
.cr-dialog-close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; color: #0f1e36; font-size: 28px; border: 1px solid #d99b2670; border-radius: 50%; cursor: pointer; }
.cr-dialog-close:hover { background: #f1e6cd; }
.cr-dialog-body { font-size: 15px; line-height: 1.6; }
.cr-dialog-body p { margin: 0 0 18px; }
.cr-dialog-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 8px 8px 8px 0; padding: 10px 20px; background: #0f1e36; color: #faf6ee; border: 1px solid #d99b26; border-radius: 999px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.cr-dialog-button:hover { background: #243958; }
.cr-dialog-button-secondary { color: #0f1e36; background: transparent; }
.cr-dialog-button-secondary:hover { background: #f1e6cd; }
.cr-dialog-button:disabled { cursor: not-allowed; opacity: .5; }
.cr-preview-note { padding: 12px 14px; color: #475569; background: #f0e7d6; border-radius: 10px; font-size: 13px; }
.cr-product-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 24px; }
.cr-product-image { min-height: 300px; background-repeat: no-repeat; border: 1px solid #d99b2660; border-radius: 14px; }
.cr-product-subtitle { font-weight: 600; color: #0d6874; }
.cr-dialog-status { min-height: 24px; margin-top: 8px !important; color: #0d6874; font-size: 13px; }
.cr-search-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.cr-search-input { width: 100%; min-height: 48px; padding: 10px 14px; color: #0f1e36; background: white; border: 1px solid #d99b2680; border-radius: 10px; font-family: inherit; font-size: 16px; }
.cr-search-count { margin-top: 14px !important; color: #475569; font-size: 13px; }
.cr-search-results { display: grid; gap: 10px; }
.cr-search-result { display: flex; align-items: center; gap: 16px; width: 100%; padding: 8px; text-align: left; background: white; border: 1px solid #d99b2640; border-radius: 12px; cursor: pointer; }
.cr-search-result:hover { background: #f5eedb; }
.cr-search-result strong { display: block; font-size: 14px; letter-spacing: .06em; }
.cr-search-result span > span { display: block; color: #475569; font-size: 13px; }
.cr-search-image { flex: 0 0 56px; width: 56px; height: 70px; background-repeat: no-repeat; border-radius: 6px; }
.cr-search-arrow { margin-left: auto; padding: 0 10px; }
.cr-basket-list { margin-bottom: 18px; }
.cr-basket-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid #d99b2640; }
.cr-basket-image { width: 88px; height: 120px; background-repeat: no-repeat; border-radius: 10px; }
.cr-basket-copy h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.cr-basket-copy p { margin-bottom: 6px; color: #475569; font-size: 13px; }
.cr-quantity-controls { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.cr-quantity-controls button { width: 36px; min-height: 36px; margin: 4px 0; padding: 0; font-size: 18px; }
.cr-quantity-input { width: 50px; height: 36px; text-align: center; background: white; color: #0f1e36; border: 1px solid #d99b2680; border-radius: 6px; font-family: inherit; font-size: 16px; appearance: textfield; }
.cr-quantity-input::-webkit-inner-spin-button, .cr-quantity-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cr-remove-button { min-height: 40px; margin-left: 14px; padding: 4px; color: #a52c1a; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; cursor: pointer; }
.cr-ingredients-list { margin: 16px 0 20px; padding-left: 22px; list-style: disc; }
.cr-ingredients-list li { padding: 3px 0; }
.cr-empty-state { padding: 18px 0; font-family: 'Playfair Display', Georgia, serif; font-size: 20px; }
.cr-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1099px) {
  #mainNav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 6px; color: #0f1e36; border: 1px solid #d99b2660; border-radius: 8px; }
  #mainNav.is-open { display: flex; position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; background: #faf6ee; border: 1px solid #d99b2670; border-radius: 0 0 14px 14px; box-shadow: 0 15px 30px #0f1e3620; }
  #mainNav.is-open > a { margin: 0; padding: 12px 16px; align-items: flex-start; border-radius: 8px; }
  #mainNav.is-open > a:hover { background: #f5eedb; }
  #mainNav.is-open > a > span + span { display: none; }
}
@media (max-width: 520px) {
  .cr-dialog { padding: 20px; }
  .cr-dialog-title { font-size: 24px; }
  .cr-product-layout { grid-template-columns: 1fr; gap: 18px; }
  .cr-product-image { width: 180px; min-height: 230px; margin: 0 auto; }
  .cr-basket-row { gap: 14px; grid-template-columns: 72px minmax(0, 1fr); }
  .cr-basket-image { width: 72px; height: 104px; }
  .cr-remove-button { display: block; margin-left: 0; }
}
