/* Public shop pages (ooga.app/<slug>): a showcase of the shop, styled like
   the app (cover, logo, catalogue tabs). Loaded after home-base.css. */
.shop-page {
  --ink: #30203b;
  --muted: #7a6d80;
  --line: #efe6f5;
  --tile: #f7ecfe;
  --card: #fff;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.shop-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* --- Shop identity ------------------------------------------------------ */
.shop-cover {
  height: 220px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3e3fd, #fbeefd);
}
.shop-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -70px;
  position: relative;
}
.shop-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 5px solid #fff;
  background: var(--tile);
  box-shadow: 0 10px 28px #30203b24;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: Baloo, cursive;
  font-size: 56px;
  color: var(--brand);
}
.shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-page h1 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 14px 0 10px;
  line-height: 1.05;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  background: var(--tile);
  color: var(--brand);
}

/* --- Catalogue tabs (same look as the app) ------------------------------ */
.shop-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 26px -24px 18px;
  padding: 10px 24px 0;
  background: transparent;
}
.shop-tabs::-webkit-scrollbar {
  display: none;
}
.shop-tab {
  flex: none;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 10px 14px 12px;
  font: 800 16px Nunito, sans-serif;
  color: var(--ink);
  border-bottom: 5px solid transparent;
  border-radius: 3px;
  white-space: nowrap;
}
.shop-tab[aria-selected="true"] {
  color: var(--brand);
  font-size: 18px;
  border-bottom-color: var(--brand);
}
.shop-panels {
  overflow: hidden;
}
.shop-panel[hidden] {
  display: none;
}
/* Swipe-like transition between tabs. */
.shop-panel.slide-from-right {
  animation: shop-slide-from-right 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.shop-panel.slide-from-left {
  animation: shop-slide-from-left 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes shop-slide-from-right {
  from { transform: translateX(28%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes shop-slide-from-left {
  from { transform: translateX(-28%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-panel.slide-from-right,
  .shop-panel.slide-from-left {
    animation: none;
  }
}

/* --- Product cards (same as the app) ------------------------------------ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.menu-item {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  cursor: pointer;
  color: inherit;
  box-shadow: 0 4px 16px #30203b14;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.menu-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px #30203b1f;
}
.menu-item img,
.menu-item .menu-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--tile);
  display: block;
}
.menu-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.menu-name {
  font-family: Baloo, cursive;
  font-size: 19px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.menu-price {
  margin-top: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
}
.menu-price s {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.menu-price s + span {
  color: var(--brand);
}
.menu-price .discount {
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 13px;
}
.menu-empty {
  text-align: center;
  color: var(--muted);
  margin-top: 40px;
}

/* --- Order dialog -------------------------------------------------------- */
.order-dialog {
  border: 0;
  border-radius: 26px;
  padding: 30px 26px 26px;
  max-width: 420px;
  width: calc(100% - 32px);
  text-align: center;
  color: var(--ink);
  box-shadow: 0 24px 60px #30203b40;
}
.order-dialog::backdrop {
  background: #30203b80;
}
.order-dialog h2 {
  font-family: Baloo, cursive;
  font-weight: 400;
  font-size: 26px;
  margin: 12px 0 8px;
  line-height: 1.15;
}
.order-dialog-text {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
}
.order-dialog .downloads {
  justify-content: center;
}
.order-dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
}
.order-dialog-close button {
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

@media (max-width: 760px) {
  .shop-wrap {
    padding: 0 12px 44px;
  }
  .shop-cover {
    height: 170px;
    border-radius: 0 0 22px 22px;
    margin: 0 -12px;
  }
  .shop-identity {
    margin-top: -56px;
  }
  .shop-logo {
    width: 112px;
    height: 112px;
  }
  .shop-tabs {
    margin: 20px -12px 14px;
    padding: 6px 12px 0;
  }
  .shop-tab {
    font-size: 14px;
    padding: 9px 10px 10px;
  }
  .shop-tab[aria-selected="true"] {
    font-size: 16px;
  }
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .menu-body {
    padding: 10px 12px 12px;
  }
  .menu-name {
    font-size: 17px;
  }
  .menu-desc {
    display: none;
  }
}
