/* Local polish for the Fashion2 storefront. The original theme styles remain the source of truth. */
html { scroll-behavior: smooth; }
body { min-width: 320px; }
img { height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }

.local-toast {
  position: fixed;
  z-index: 3000;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  padding: 12px 18px;
  color: #fff;
  background: #171717;
  border-radius: 3px;
  box-shadow: 0 8px 30px #0002;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.local-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.local-panel-backdrop {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #0007;
}
.local-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(78vh, 720px);
  overflow: auto;
  padding: 30px;
  background: #fff;
  box-shadow: 0 18px 70px #0003;
}
.local-panel h2 { margin: 0 40px 20px 0; font-size: 1.35rem; }
.local-panel-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.local-cart-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #eee; }
.local-cart-row img { width: 76px; }
.local-cart-empty { color: #777; padding: 12px 0 4px; }
.local-cart-subtotal { display: flex; justify-content: space-between; padding: 16px 0 10px; border-top: 1px solid #eee; }
.local-checkout-link { display: block; width: 100%; margin-top: 8px; }
.local-cart-note { margin: 10px 0 0; color: #858585; font-size: 12px; text-align: center; }
.local-search-form { display: flex; gap: 10px; }
.local-search-form input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid #ddd; }
.local-search-results { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.local-search-result { color: inherit; text-decoration: none; font-size: .88rem; }
.local-search-result img { display: block; width: 100%; margin-bottom: 8px; }
.local-no-results { grid-column: 1 / -1; color: #777; }

@media (max-width: 575.98px) {
  .local-panel { padding: 24px 18px; }
  .local-search-results { gap: 10px; }
  .local-toast { bottom: 18px; max-width: calc(100vw - 32px); white-space: nowrap; }
}
