/*
 * menu.css — styles for the MenuSystem component (see menu.js header for
 * drop-in instructions and the full token list).
 *
 * CUSTOMIZED FOR LULU'S — this copy has Lulu's brand colors, fonts, and the
 * wave-divider/two-column layout baked in directly (not the generic drop-in
 * version). Do not copy this file as-is into a new store's migration; start
 * a new store from the canonical template's menu.css instead.
 */

/* ---------- loading skeleton ---------- */

.menu-skeleton {
  padding-top: 2em;
}

.skeleton-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
  margin-bottom: 1.5em;
}

.skeleton-tab {
  height: 2.2em;
}

.skeleton-diet-filters {
  display: none;
}

.skeleton-body {
  padding: 0 5%;
  box-sizing: border-box;
}

.skeleton-heading {
  display: block;
  width: 320px;
  max-width: 60%;
  height: 4.5em;
  margin: 0 auto;
  margin-bottom: .5rem;
}

.skeleton-section-title {
  grid-column: span 2;
  display: inline-block;
  text-align: center;
  margin: 1vw 1.5vh;
  border-radius: 0px;
  height: 4.5em;
}

.skeleton.skeleton-section-title {
  background-image: url(https://images.squarespace-cdn.com/content/6182a8b239de034887ffb2b5/518047a3-a945-4be0-9fac-76100dbbf17e/Wavy.png?content-type=image%2Fpng), url(https://images.squarespace-cdn.com/content/6182a8b239de034887ffb2b5/518047a3-a945-4be0-9fac-76100dbbf17e/Wavy.png?content-type=image%2Fpng);
  background-repeat: no-repeat, no-repeat;
  background-position-x: left, right;
  background-position-y: bottom, bottom;
  background-size: 35%;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0em;
  margin-bottom: 2.5em;
}

.skeleton-item {
  display: flex;
  align-items: center;
  gap: 1.5em;
  padding: 0.6em;
}

.skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.skeleton-line {
  height: 0.9em;
}

.skeleton-price {
  width: 48px;
  height: 1em;
  flex-shrink: 0;
}

.skeleton {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(7, 96, 155, 0.15);
  border-radius: 3px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(159, 191, 255, 0.35), transparent);
  animation: skeletonShimmer 1.6s infinite;
}

@keyframes skeletonShimmer {
  100% { transform: translateX(100%); }
}

h1 {
  margin-top: 6vh;
}

/* ---------- category tabs ---------- */

.tabs-scroll {
  position: relative;
}

.tabs-swipe-hint {
  display: none;
  margin: 0 0 0.6em;
  font-family: var(--font-body);
  font-size: 0.8em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-ocean);
  opacity: 0.65;
}

.tabs-swipe-hint span {
  display: inline-block;
  animation: tabsSwipeArrow 1.6s ease-in-out infinite;
}

@keyframes tabsSwipeArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

#category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5em;
  margin: 2%;
}

#category-tabs button {
  border: 0;
  border-radius: 0px;
  background-color: transparent;
  color: var(--deep-ocean);
  font-family: var(--font-body);
  font-size: 1.3em;
  cursor: pointer;
  transition: all .3s ease;
}

#category-tabs button:hover,
#category-tabs button.active {
  background-color: var(--reflection);
  color: var(--sand-dollar);
  text-decoration: none;
}

/* ---------- diet filters ---------- */

#diet-filters {
  margin-top: 1.5em;
  text-align: center;
  justify-self: center;
}

.diet-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2em;
}

#diet-filters label {
  display: inline-flex;
  align-items: center;
  gap: .25em;
  font-size: .95em;
  font-family: var(--font-body);
  color: var(--deep-ocean);
  margin-right: 1.2em;
  cursor: pointer;
}

#diet-filters input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  border: 2px solid var(--deep-ocean);
  border-radius: 3px;
  background: transparent;
  position: relative;
}

#diet-filters input[type="checkbox"]:checked {
  background: var(--deep-ocean);
  border-color: var(--deep-ocean);
}

#diet-filters input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 10px;
  border: solid var(--sand-dollar);
  border-width: 0 2.5px 2.5px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.diet-icon-img {
  height: 24px;
  width: auto;
  vertical-align: middle;
  object-fit: contain;
}

.diet-icon-svg {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  display: inline-block;
  color: var(--deep-ocean);
}

/* ---------- menu content ---------- */

#menu-container > h2 {
  font-family: var(--font-title);
  font-size: 8em;
  margin-bottom: .5rem;
  color: var(--deep-ocean);
  text-align: center;
}

.menu-category-description {
  color: var(--deep-ocean);
  margin-bottom: 1rem;
}

.menu-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0em;
  margin-bottom: 2.5em;
  color: var(--deep-ocean);
}

.menu-section h3 {
  grid-column: span 2;
  font-family: var(--font-title);
  color: var(--deep-ocean);
  border-bottom: none;
  border-radius: 0px;
  font-size: 5em;
  font-weight: 400;
  margin: 1vw 1.5vh;
  display: inline-block;
  text-align: center;
  background-image: url(https://images.squarespace-cdn.com/content/6182a8b239de034887ffb2b5/518047a3-a945-4be0-9fac-76100dbbf17e/Wavy.png?content-type=image%2Fpng), url(https://images.squarespace-cdn.com/content/6182a8b239de034887ffb2b5/518047a3-a945-4be0-9fac-76100dbbf17e/Wavy.png?content-type=image%2Fpng);
  background-repeat: no-repeat, no-repeat;
  background-position-x: left, right;
  background-position-y: bottom, bottom;
  background-size: 35%;
}

.product-icon-container {
  display: flex;
  align-items: center;
}

.product-icon-container svg {
  width: 70px;
  height: 70px;
}

.product-icon-svg {
  color: var(--deep-ocean);
}

.product-icon {
  height: 70px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.menu-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5em;
  padding: 0.6em;
  font-family: var(--font-body);
}

.menu-item.highlighted {
  background: transparent;
  border: 4px solid var(--reflection);
  border-radius: 0px;
}

.menu-item.highlighted h4,
.menu-item.highlighted p,
.menu-item.highlighted .price {
  color: var(--deep-ocean);
}

.text-col {
  flex: 1;
}

.title-with-icons {
  display: flex;
  align-items: center;
  gap: 0.4em;
  flex-wrap: wrap;
}

.title-with-icons h4 {
  margin: 0;
  font-size: 1.1em;
}

.menu-item h4 {
  font-family: var(--font-body);
  font-weight: bold;
  margin: 0;
  color: var(--deep-ocean);
}

.menu-item p {
  font-size: .95em;
  margin: 0;
  color: var(--deep-ocean);
}

.menu-item .icons {
  display: flex;
  gap: .4em;
  flex-wrap: wrap;
  justify-content: center;
}

.price-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  align-self: stretch;
  text-align: right;
}

.menu-item .price {
  font-weight: bold;
  color: var(--deep-ocean);
  white-space: nowrap;
  margin-bottom: 0.2em;
}

.top-pick {
  font-family: var(--font-sub-title);
  font-size: 0.85em;
  font-weight: bold;
  background: var(--deep-ocean);
  color: var(--sand-dollar);
  padding: 2px 6px;
  border-radius: 50%;
  text-align: center;
  max-width: 100%;
  align-self: flex-end;
}

/* ---------- error state ---------- */

.menu-error {
  color: var(--deep-ocean);
  font-family: var(--font-body);
  text-align: center;
  padding: 3em 1em;
}

.menu-error p {
  margin: 0 0 1em;
}

.menu-error-retry {
  border: 2px solid var(--deep-ocean);
  background: transparent;
  color: var(--deep-ocean);
  font-family: var(--font-body);
  font-size: 1em;
  padding: .5em 1.4em;
  cursor: pointer;
  border-radius: 0px;
  transition: all .3s ease;
}

.menu-error-retry:hover {
  background: var(--deep-ocean);
  color: var(--sand-dollar);
}

/* ---------- mobile ---------- */

@media (max-width: 700px) {
  #menu-filters {
    padding-top: 10vh;
  }

  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .skeleton-heading {
    height: 2.5em;
    max-width: 75%;
  }

  .skeleton-section-title {
    grid-column: span 1;
    height: 2.7em;
    margin: 1vw .5vh;
  }

  .skeleton.skeleton-section-title {
    background-size: 18%;
  }

  #menu-container > h2 {
    font-size: 4.5em;
  }

  .menu-section {
    grid-template-columns: 1fr;
  }

  .menu-section h3 {
    font-size: 3em;
    margin: 1vw .5vh;
    background-size: 18%;
    grid-column: span 1;
  }

  .menu-item {
    flex-direction: column;
    gap: .5em;
  }

  .top-pick {
    align-self: flex-start;
  }

  #category-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #category-tabs::-webkit-scrollbar {
    display: none;
  }

  #category-tabs button {
    flex: 0 0 auto;
  }

  .tabs-swipe-hint {
    display: block;
  }
}
