.bio-profile,
.bio-profile * { box-sizing: border-box; letter-spacing: 0; }

.bio-profile {
  width: min(480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: #fff;
  color: #20252d;
  box-shadow: 0 0 34px rgba(23, 32, 51, .14);
}

.profile-topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid #eceff3;
  background: #fff;
}

.profile-brand { min-width: 0; display: flex; align-items: center; gap: 10px; }
.profile-brand>span { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: var(--profile-accent); color: #fff; font-size: 18px; }
.profile-brand img { width: 100%; height: 100%; object-fit: cover; }
.profile-brand strong { overflow: hidden; color: var(--profile-accent); font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.profile-topbar>div { margin-left: auto; display: flex; gap: 4px; }
.profile-topbar button,.profile-topbar>div>a { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--profile-accent); font-size: 27px; cursor: pointer; }
.profile-topbar button:hover,.profile-topbar>div>a:hover { background: #f3f5f7; }
.profile-topbar button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.profile-identity { position: relative; padding-bottom: 24px; background: #fff; }
.profile-cover { height: 205px; display: grid; place-items: center; overflow: hidden; background: var(--profile-accent); color: #fff; font-size: 24px; font-weight: 850; }
.profile-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-avatar { position: relative; z-index: 2; width: 104px; height: 104px; margin: -52px auto 0; display: grid; place-items: center; overflow: hidden; border: 5px solid #fff; border-radius: 50%; background: #fff; color: var(--profile-accent); font-size: 42px; font-weight: 900; box-shadow: 0 5px 16px rgba(23,32,51,.2); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-bio { padding: 15px 28px 0; display: grid; justify-items: center; text-align: center; }
.profile-bio h1 { max-width: 100%; margin: 0; overflow-wrap: anywhere; font-size: 29px; line-height: 1.15; }
.profile-handle { margin-top: 4px; color: #73777e; font-size: 15px; }
.profile-status { min-height: 28px; margin-top: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.profile-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.profile-status.open { background: #e6f7eb; color: #21823c; }
.profile-status.closed { background: #fff0f0; color: #b42318; }
.profile-bio p { max-width: 370px; margin: 17px 0 0; color: #555b63; font-size: 14px; line-height: 1.65; }

.profile-info { margin: 0 18px 22px; overflow: hidden; border: 1px solid #eceff3; border-radius: 8px; background: var(--profile-card); box-shadow: 0 7px 20px rgba(23,32,51,.07); }
.profile-info-row,.profile-hours>summary { min-height: 72px; display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 10px; padding: 14px 16px; }
.profile-info-row>span,.profile-hours>summary>span { color: var(--profile-accent); font-size: 25px; }
.profile-info-row>div,.profile-hours>summary>div { min-width: 0; display: grid; gap: 5px; }
.profile-info-row strong,.profile-hours strong { color: #4f555d; font-size: 13px; line-height: 1.45; font-weight: 600; }
.profile-info-row a { width: max-content; color: var(--profile-accent); font-size: 11px; font-weight: 800; }
.profile-hours { border-top: 1px solid #eceff3; }
.profile-hours>summary { cursor: pointer; list-style: none; }
.profile-hours>summary::-webkit-details-marker { display: none; }
.profile-hours>summary small { color: #7b8189; font-size: 11px; }
.profile-hours-list { padding: 0 16px 14px 54px; }
.profile-hours-list p { margin: 0; padding: 7px 0; display: flex; justify-content: space-between; gap: 12px; color: #6b7179; font-size: 11px; }
.profile-hours-list p.today { color: var(--profile-accent); font-weight: 850; }
.profile-contact-inline { display: flex; gap: 8px; padding: 0 16px 14px 54px; }
.profile-contact-inline a { padding: 7px 10px; border: 1px solid #dce2e8; border-radius: 6px; color: var(--profile-accent); font-size: 11px; font-weight: 800; }

.profile-socials { padding: 6px 18px 25px; text-align: center; }
.profile-socials h2 { margin: 0 0 14px; font-size: 14px; }
.profile-socials>div { display: flex; justify-content: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.profile-socials a { flex: 0 0 76px; min-width: 0; display: grid; align-content: start; justify-items: center; gap: 7px; color: #3f454d; }
.profile-socials a>span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #667085; color: #fff; box-shadow: 0 5px 14px rgba(23,32,51,.13); }
.profile-socials a>b { width: 100%; min-height: 26px; overflow: hidden; font-size: 10px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.profile-socials svg { width: 25px; height: 25px; display: block; fill: currentColor; stroke: none; }
.profile-socials .brand-instagram svg rect,.profile-socials .brand-instagram svg circle { fill: none; stroke: currentColor; stroke-width: 1.9; }
.profile-socials .brand-instagram svg .brand-dot { fill: currentColor; stroke: none; }
.profile-socials .brand-whatsapp svg path { fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.profile-socials .brand-youtube svg .brand-cutout { fill: #fff; }
.profile-socials .brand-maps svg path,.profile-socials .brand-maps svg circle { fill: none; stroke: currentColor; stroke-width: 1.8; }
.profile-socials .brand-custom { font-size: 20px; }
.profile-socials .brand-whatsapp>span { background: #25d366; }
.profile-socials .brand-instagram>span { background: #e4405f; }
.profile-socials .brand-facebook>span { background: #1877f2; }
.profile-socials .brand-tiktok>span { background: #111; }
.profile-socials .brand-youtube>span { background: #ff0000; }
.profile-socials .brand-x>span { background: #111; }
.profile-socials .brand-maps>span { background: #4285f4; }

.profile-links { padding: 0 18px 26px; display: grid; gap: 8px; }
.profile-links>a { min-height: 58px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #e4e8ed; border-radius: 8px; background: #fff; color: #272d35; }
.profile-links>a>span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 7px; background: var(--link-color); color: #fff; font-size: 18px; }
.profile-links>a>strong { font-size: 13px; }
.profile-links>a>i { color: var(--link-color); font-size: 22px; font-style: normal; }

.profile-section { padding: 28px 18px; border-top: 8px solid #f5f6f8; }
.profile-section>header { margin-bottom: 16px; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.profile-section>header small,.profile-cta>small { color: var(--profile-accent); font-size: 10px; font-weight: 900; }
.profile-section h2 { margin: 4px 0 4px; font-size: 21px; }
.profile-section header p { margin: 0; color: #717780; font-size: 11px; line-height: 1.5; }
.profile-section>header>a { flex: 0 0 auto; color: var(--profile-accent); font-size: 11px; font-weight: 850; }

.profile-menu-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: stretch; }
.profile-menu-grid article { min-width: 0; overflow: hidden; border: 1px solid #e7eaee; border-radius: 8px; background: #fff; box-shadow: 0 6px 17px rgba(23,32,51,.08); }
.profile-menu-grid article>a { height: 100%; display: flex; flex-direction: column; }
.profile-menu-image { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; background: #edf1f4; color: var(--profile-accent); font-size: 42px; }
.profile-menu-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-menu-image b { position: absolute; top: 7px; left: 7px; padding: 4px 6px; border-radius: 999px; background: var(--profile-accent); color: #fff; font-size: 8px; }
.profile-menu-copy { flex: 1; display: flex; flex-direction: column; padding: 11px; }
.profile-menu-copy h3 { min-height: 38px; margin: 0 0 5px; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.profile-menu-copy p { min-height: 32px; margin: 0 0 10px; color: #6a7078; font-size: 10px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.profile-menu-copy>div { margin-top: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.profile-menu-copy s { color: #9aa0a8; font-size: 9px; }
.profile-menu-copy strong { color: var(--profile-accent); font-size: 15px; }
.profile-menu-copy>span { height: 33px; margin-top: 10px; display: grid; place-items: center; border: 1px solid var(--profile-accent); border-radius: 999px; color: var(--profile-accent); font-size: 11px; font-weight: 850; }

.profile-food-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-flow: dense; gap: 8px; }
.profile-food-gallery>a { position: relative; min-width: 0; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #e9edf1; color: #fff; }
.profile-food-gallery>a>div { position: absolute; inset: 0; display: grid; place-items: center; color: var(--profile-accent); font-size: 48px; }
.profile-food-gallery img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.profile-food-gallery>a:hover img { transform: scale(1.045); }
.food-gallery-shade { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.82)); }
.food-gallery-copy { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; display: grid; gap: 3px; padding: 12px; }
.food-gallery-copy small { width: max-content; padding: 3px 5px; border-radius: 4px; background: var(--profile-accent); color: #fff; font-size: 7px; font-weight: 900; }
.food-gallery-copy strong { font-size: 15px; line-height: 1.25; text-shadow: 0 1px 5px #000; }
.food-gallery-copy em { font-size: 11px; font-style: normal; font-weight: 800; }

.profile-gallery>div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.profile-gallery button { aspect-ratio: 1; overflow: hidden; padding: 0; border: 0; border-radius: 8px; background: #edf1f4; cursor: zoom-in; }
.profile-gallery img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s; }
.profile-gallery button:hover img { transform: scale(1.04); }

.profile-cta { margin: 0; padding: 34px 24px; border-top: 8px solid #f5f6f8; background: var(--profile-cta); color: #fff; text-align: center; }
.profile-cta>small { color: #fff; opacity: .75; }
.profile-cta h2 { margin: 7px 0; font-size: 25px; }
.profile-cta p { max-width: 360px; margin: 0 auto; opacity: .85; font-size: 13px; line-height: 1.6; }
.profile-cta>a { min-height: 48px; margin-top: 18px; display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-radius: 8px; background: #fff; color: var(--profile-cta); font-size: 13px; font-weight: 900; }

.profile-footer { padding: 30px 20px 38px; display: grid; justify-items: center; gap: 7px; background: var(--profile-footer); color: rgba(255,255,255,.78); text-align: center; }
.profile-footer strong { color: #fff; }
.profile-footer p { margin: 0; font-size: 11px; }
.profile-footer small { font-size: 9px; }
.profile-footer>a { color: #fff; font-size: 10px; font-weight: 800; text-decoration: underline; }

.bio-profile .bio-bottom-nav { z-index: 40; display: flex; width: min(480px,100%); }
.bio-profile .bio-bottom-nav [data-bottom-nav="orders"] { position: relative; }

@media (max-width: 350px) {
  .profile-cover { height: 180px; }
  .profile-bio { padding-inline: 18px; }
  .profile-bio h1 { font-size: 25px; }
  .profile-section { padding-inline: 12px; }
  .profile-menu-grid { gap: 8px; }
  .profile-menu-copy { padding: 9px; }
  .profile-menu-copy h3 { font-size: 14px; }
  .food-gallery-copy { padding: 9px; }
  .food-gallery-copy strong { font-size: 13px; }
}
