:root {
  color-scheme: light;
  --yafa-web-width: 1180px;
  --yafa-web-narrow: 820px;
}

html { background: #FBF7F4; }
body { min-width: 320px; background: #FBF7F4 !important; }
button, a, input, select, textarea { letter-spacing: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(90, 52, 38, .28);
  outline-offset: 2px;
}

.yafa-web-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity .35s ease;
}
.yafa-web-splash__icon {
  width: clamp(88px, 12vw, 132px);
  aspect-ratio: 1;
  border-radius: 26%;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(90, 52, 38, .20);
}
.yafa-web-splash__icon img { width: 100%; height: 100%; object-fit: cover; }
.yafa-web-splash strong { margin-top: 16px; font-size: 21px; color: #5A3426; }
.yafa-web-spinner {
  width: 32px;
  height: 32px;
  margin-top: 24px;
  border: 3px solid #e5e7eb;
  border-top-color: #5A3426;
  border-radius: 50%;
  animation: yafa-web-spin .8s linear infinite;
}
@keyframes yafa-web-spin { to { transform: rotate(360deg); } }
.yafa-noscript { max-width: 520px; margin: 80px auto; padding: 20px; text-align: center; font-weight: 800; }

.yafa-web #toast-root { padding-top: 18px !important; }
.yafa-web .app-shell { width: 100%; box-shadow: none; }
.yafa-web .yafa-bottom-chrome > div { box-shadow: 0 -10px 40px rgba(15, 23, 42, .08); }

@media (min-width: 640px) {
  .yafa-web .app-shell {
    max-width: min(var(--yafa-web-width), calc(100vw - 40px));
    margin: 20px auto 0;
    min-height: calc(100dvh - 20px);
    background: #f8fafc;
    border-radius: 26px 26px 0 0;
    overflow: clip;
    box-shadow: 0 18px 60px rgba(15, 23, 42, .08);
  }
  .yafa-web .yafa-view-cart,
  .yafa-web .yafa-view-orders,
  .yafa-web .yafa-view-profile,
  .yafa-web .yafa-view-checkout,
  .yafa-web .yafa-view-order,
  .yafa-web .yafa-view-product {
    max-width: min(var(--yafa-web-narrow), calc(100vw - 40px));
  }
  .yafa-web .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .yafa-web .yafa-view-categories > .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yafa-web .w-36 { width: 11rem; }
  .yafa-web .yafa-bottom-chrome { padding: 0 20px 14px; }
  .yafa-web .yafa-bottom-chrome > div {
    max-width: 680px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 20px;
    overflow: hidden;
  }
  .yafa-web .yafa-select-menu,
  .yafa-web .yafa-media-picker { align-items: center; }
  .yafa-web .yafa-select-menu__panel,
  .yafa-web .yafa-media-picker__panel { border-radius: 22px; }
}

@media (min-width: 960px) {
  .yafa-web .yafa-view-home > header {
    min-height: 16rem !important;
    padding: 28px 34px 30px;
  }
  .yafa-web .yafa-view-home > header > button[data-search] { max-width: 700px; }
  .yafa-web .yafa-view-home > section { padding-inline: 28px; }
  .yafa-web .yafa-view-home > section > div.px-4,
  .yafa-web .yafa-view-home > section > div.no-scrollbar { padding-inline: 0; }
  .yafa-web .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .yafa-web .yafa-view-categories > .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .yafa-web .yafa-view-search .card-grid,
  .yafa-web .yafa-view-category .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .yafa-web .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .yafa-web .yafa-view-search .card-grid,
  .yafa-web .yafa-view-category .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .yafa-web .app-shell { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
