/* D-117: shared storefront policy, including Site and Shop routes.
   Decorative hover rules belong nowhere in page CSS. Keep functional reveals,
   selected values, disabled/loading states and visible keyboard focus. */
body a,
body button,
body summary,
body input:is([type="submit"], [type="button"], [type="reset"]) {
  text-decoration: none !important;
  transition: none !important;
}
body a[href],
body button:not(:disabled):not([aria-disabled="true"]),
body summary,
body input:is([type="submit"], [type="button"], [type="reset"]):not(:disabled) {
  cursor: pointer;
}
body .simkha-action-link::after { content: none !important; }
/* D-115 is the explicit exception for utility icons in the shared header. */
body .d103-header .d103-header__icon,
body .d103-header .d103-header__search-submit {
  transition: background var(--simkha-motion-ui) var(--simkha-motion-ease), color var(--simkha-motion-ui) var(--simkha-motion-ease) !important;
}

/* Shared fields: keep native controls, errors and autofill intact. */
html.d2-shell {
  --d2-field-placeholder: var(--d2-text-secondary);
  --d2-field-focus: var(--d2-lilac-muted);
  --d2-field-autofill-text: var(--d2-lilac-deep);
}
html.d2-shell :is(input, textarea)::placeholder {
  color: var(--d2-field-placeholder) !important;
  opacity: 1 !important;
}
html.d2-shell :is(input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="url"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], textarea, select):focus {
  outline: none !important;
  box-shadow: none !important;
}
/* Keyboard focus uses one bottom line, without an external rectangle. */
html.d2-shell :is(input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="url"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], textarea, select):focus-visible {
  box-shadow: inset 0 -2px 0 var(--d2-field-focus) !important;
}
/* The header search owns its underline; keep focus on that same baseline. */
html.d2-shell :is(.hf-header__search, .hf-mobile-panel__search) input:focus-visible {
  box-shadow: none !important;
}
html.d2-shell :is(.hf-header__search, .hf-mobile-panel__search):has(input:focus-visible) {
  border-bottom-color: var(--d2-field-focus);
  box-shadow: inset 0 -1px 0 var(--d2-field-focus);
}
html.d2-shell .d2-orders-search:focus-within { outline: none; }
/* Search over photography needs the existing light palette. */
html.d2-shell .hf-header:not(.hf-header--light):not(.hf-header--menu-open),
html.d2-shell .hf-footer {
  --d2-field-placeholder: var(--d2-lilac-soft);
  --d2-field-focus: var(--d2-lilac-soft);
}
html.d2-shell .hf-mobile-panel__search {
  --d2-field-placeholder: var(--d2-text-secondary);
  --d2-field-focus: var(--d2-lilac-muted);
}

/* Preserve browser autofill; clip its forced background instead of disabling it.
   This also keeps transparent fields and the existing keyboard focus line. */
html.d2-shell :is(input[type], input:not([type]), textarea, select):is(:autofill, :-webkit-autofill) {
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: var(--d2-field-autofill-text) !important;
  caret-color: var(--d2-field-autofill-text);
}
html.d2-shell :is(.simkha-feedback__fields, .d2-profile-fields, .d2-checkout),
html.d2-shell .hf-header--light .hf-header__search {
  --d2-field-autofill-text: var(--d2-lilac-muted);
}
html.d2-shell .hf-header:not(.hf-header--light):not(.hf-header--menu-open) {
  --d2-field-autofill-text: var(--d2-lilac-soft);
}
html.d2-shell .hf-footer { --d2-field-autofill-text: var(--d2-lilac-pale); }
html.d2-shell .hf-mobile-panel__search { --d2-field-autofill-text: var(--d2-text-secondary); }
