/* Pre-boot shell styles: the skeleton shown before Angular takes over <app-root>. Scoped to
 * .storefront-shell so none of it outlives the skeleton once Angular boots. Sizes and breakpoints
 * mirror the menu page (header, hero-area2, menu-category-list, sidebar). Named shell.css because
 * the Angular build owns styles.css. */
body {
  margin: 0;
}

.storefront-shell {
  position: relative;
  min-height: 100svh;
  background: #fafafa;
}

.storefront-shell div {
  box-sizing: border-box;
}

.storefront-shell .shell-header,
.storefront-shell .shell-hero,
.storefront-shell .shell-sidebar,
.storefront-shell .shell-item {
  background: linear-gradient(270deg, #f0f0f0, #e6e6e6, #f0f0f0);
  background-size: 200%;
  animation: shell-shimmer 1s linear infinite;
}

.storefront-shell .shell-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: 50px;
  background: #dcdcdc;
  animation: none;
}

.storefront-shell .shell-hero {
  height: 390px;
}

.storefront-shell .shell-sidebar {
  display: none;
}

.storefront-shell .shell-items {
  display: flex;
  flex-wrap: wrap;
  padding: 70px 0 0;
}

.storefront-shell .shell-item {
  width: 100%;
  height: 92px;
  border-bottom: 1px solid #fafafa;
}

@media (min-width: 768px) {
  .storefront-shell .shell-header {
    height: 70px;
  }

  .storefront-shell .shell-hero {
    height: 550px;
    margin-bottom: 70px;
  }

  .storefront-shell .shell-items {
    padding: 70px 20px 0;
  }

  .storefront-shell .shell-item {
    width: 49%;
    margin: 0 1% 10px 0;
    border-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .storefront-shell .shell-items {
    padding-left: 40px;
  }
}

@media (min-width: 1200px) {
  .storefront-shell .shell-sidebar {
    display: block;
    position: absolute;
    top: 640px;
    right: 20px;
    bottom: 20px;
    width: 400px;
  }

  .storefront-shell .shell-items {
    max-width: 1600px;
    margin: 0 auto;
    padding: 126px 440px 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storefront-shell div {
    animation: none;
  }
}

@keyframes shell-shimmer {
  from {
    background-position: 100% 50%;
  }
  to {
    background-position: -100% 50%;
  }
}
