@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Playfair+Display:wght@600;700&family=Nunito:wght@400;600;700;800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Nunito', sans-serif;
  background-color: #cdc5bc;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

img   { display: block; }            

button {
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

.app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background-color: #fdf8f3;     
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0,0,0,.20);
  overflow-x: hidden;
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 54px;
  background: #fff;
  border-bottom: 1.5px solid #ede4db;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex-shrink: 0;
}

.brand {
  font-family: 'Dancing Script', cursive;
  font-size: 1.9rem;
  font-weight: 700;
  color: #39100e;
  line-height: 1;
  letter-spacing: .4px;
}

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #444;
  border-radius: 2px;
}

.burger:hover span { background: #bf2d24; }

.hero {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  overflow: visible;                 
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;               
  overflow: visible;  
  min-height: 150px;  
  max-height: 500px;   
  display: block;     
}

.hero-img {
  position: absolute;
  width: 100%;
  height: 200px;
  object-position: center;
  margin: 0;
  overflow: hidden;
  padding: 0;
  margin-top: 0;
  border-radius: 0;
  z-index: 1;    
}

.hero-overlay {
  position: absolute;
  inset: 0;            
  border-radius: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.05) 0%,
    rgba(0,0,0,.50) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.logo-wrap {
  position: absolute;
  top: 200px;                     
  left: 50%;
  transform: translate(-50%, -20%);  
  z-index: 10;
}

.logo-circle {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 4px solid #fff;
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 24px rgba(0,0,0,.40), 0 2px 8px rgba(0,0,0,.20);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 50%;
}

.scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 90px 16px 78px;   /* extra room for logo sitting lower */
  -webkit-overflow-scrolling: touch;
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.menu-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1c1412;
  position: relative;
  padding-bottom: 6px;
  display: inline-block;
}

.menu-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: #bf2d24;
  border-radius: 2px;
}

.view-btns { display: flex; gap: 8px; }

.vbtn {
  width: 36px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #e0d8cf;
  border-radius: 9px;
  background: #fff;
  color: #9a8f88;
  transition: border-color .18s, color .18s, background .18s;
}

.vbtn.active, .vbtn:hover {
  border-color: #bf2d24;
  color: #bf2d24;
  background: #fdf0ef;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex-shrink: 0;
  height: 38px;
  padding: 0 22px;
  border-radius: 50px;
  border: 2px solid #ddd4ca;
  background: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: .87rem;
  font-weight: 800;
  color: #9a8f88;
  letter-spacing: .2px;
  transition: all .2s;
  cursor: pointer;
}

.tab.active {
  background: #bf2d24;
  border-color: #bf2d24;
  color: #fff;
  box-shadow: 0 4px 14px rgba(191,45,36,.30);
}

.tab:hover:not(.active) {
  border-color: #bf2d24;
  color: #bf2d24;
  background: #fdf0ef;
}

.panel { display: none; }

.panel.active { display: block; }

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #ede4db;
  animation: slideUp .28s ease both;
}

.card:last-of-type { border-bottom: none; }

.card-info { flex: 1; min-width: 0; }

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #bf2d24;
  margin-bottom: 4px;
  line-height: 1.25;
}

.card-price {
  font-size: .92rem;
  font-weight: 800;
  color: #8e1e17;
  margin-bottom: 5px;
}

.card-desc {
  font-size: .77rem;
  color: #9a8f88;
  line-height: 1.55;
}

.card-thumb {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 13px;
  overflow: visible;
  background: #f0ece7;
  position: relative;
  box-shadow: 0 3px 12px rgba(0,0,0,.13);
  object-fit: fill;

}



.card-thumb img {
  height: 100%;
  object-position: center center;
  background-size: cover;
  margin: 0px;
  padding: 0px;
  border-radius: 13px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

/* ── Tap hint on the croissant thumbnail ── */
.croissant-wrapper {
  cursor: pointer;
  position: relative;
}
.croissant-wrapper::after {
  content: '👆';
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: .75rem;
  pointer-events: none;
  z-index: 5;
}

/* ── Popup Overlay ── */
.croissant-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.croissant-popup.open {
  opacity: 1;
  pointer-events: auto;
}

.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.popup-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32,.72,0,1);
}
.croissant-popup.open .popup-card {
  transform: translateY(0);
}

/* ── Slides ── */
.popup-slides {
  position: relative;
}
.popup-slide {
  display: none;
  flex-direction: column;
}
.popup-slide.active {
  display: flex;
  animation: slideIn .35s ease both;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.popup-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.popup-info {
  padding: 16px 20px 8px;
}
.popup-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #bf2d24;
  margin-bottom: 4px;
}
.popup-price {
  font-size: 1rem;
  font-weight: 800;
  color: #8e1e17;
  margin-bottom: 6px;
}
.popup-desc {
  font-size: .82rem;
  color: #9a8f88;
  line-height: 1.55;
}

/* ── Dots ── */
.popup-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 20px;
}
.popup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd4ca;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.popup-dot.active {
  background: #bf2d24;
  transform: scale(1.25);
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: sans-serif;
}

.card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.07);
  pointer-events: none;
}

.story {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  margin: 18px 0 16px;
  cursor: pointer;
  background: #1a1a1a;
  box-shadow: 0 4px 18px rgba(0,0,0,.16);
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(.35);
}

.story-fade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
  pointer-events: none;
}

.story-label {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 4px 13px;
  border-radius: 20px;
}

.story-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 3;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.26);
}

.story-play svg  { margin-left: 3px; }

.story:hover .story-img  { filter: brightness(.46); }

.story:hover .story-play { transform: translate(-50%,-50%) scale(1.10); background: #fff; }

.section-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 6px;
  font-size: .68rem;
  font-weight: 800;
  color: #b0a89f;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.section-sep::before,

.section-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ede4db;
}

.botnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: rgba(255,255,255,.97);
  border-top: 1px solid #ede4db;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -3px 18px rgba(0,0,0,.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.navbtn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0 8px;
  color: #bbb4ac;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .3px;
  transition: color .2s;
  position: relative;
  cursor: pointer;
}

.navbtn::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: #bf2d24;
  border-radius: 0 0 3px 3px;
  transition: width .22s;
}

.navbtn.active        { color: #bf2d24; }

.navbtn.active::before { width: 26px; }

.navbtn:hover          { color: #bf2d24; }

@keyframes slideUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0);    }
}

@media (min-width: 500px) {
  body {
    padding: 30px 0 50px;
    align-items: flex-start;
  }
  
  .app {
    border-radius: 28px;
    overflow-x: hidden;               
    min-height: unset;
  }
  
  .botnav {
    position: sticky;                  
    bottom: 0;
    left: auto;
    transform: none;
    width: 100%;
    border-radius: 0 0 28px 28px;
  }
}

@media (max-width: 360px) {
  
  .brand      { font-size: 1.5rem; }
  
  .menu-title { font-size: 1.5rem; }

  .hero          { padding: 0; }
  
  .hero-img-wrap { height: 165px; border-radius: 0; }
  
  .hero-overlay  { border-radius: 0; }

  .logo-wrap   { bottom: -48px; }
  
  .logo-circle { width: 96px; height: 96px; }

  .scroll-area { padding-top: 62px; }
  
  .tab        { padding: 0 16px; font-size: .82rem; }
  
  .card-thumb { width: 78px; height: 72px; }
  
  .card-name  { font-size: .93rem; }
  
  .story      { height: 138px; }
}

@media (hover: none) {
  
  .story:hover .story-img  { filter: brightness(.58); }
  
  .story:hover .story-play { transform: translate(-50%,-50%); }
}

.main-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: relative;
  z-index: 2;
}

    .hero-img-wrap {
      aspect-ratio: unset !important;
      height: 141px !important;
      min-height: unset !important;
      max-height: unset !important;
    }
    
    .hero-slides {
      position: relative;
      width: 100%;
      height: 141px;
    }
    
    .hero-slide {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 141px;
      object-fit: cover;
      border-radius: 0;
      opacity: 0;
      transition: opacity 1s ease;
      z-index: 1;
    }
    
    .hero-slide.active {
      opacity: 1;
      z-index: 2;
    }
    
    .hero-img {
      height: 141px !important;
    }
    
    .logo-wrap {
      top: 141px !important;
    }

    .hero-img-wrap {
      aspect-ratio: unset !important;
      height: 235px !important;
      min-height: unset !important;
      max-height: unset !important;
      overflow: visible !important;
      background: #fdf8f3 !important;
    }
    
    .hero {
      background: #fdf8f3 !important;
      overflow: visible !important;
    }
    
    .hero-slides {
      position: relative;
      width: 100%;
      height: 235px;
      overflow: visible;
      background: #fdf8f3;
    }
    
    .hero-slide {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 235px;
      object-fit: cover;
      border-radius: 0;
      opacity: 0;
      transition: opacity 1s ease;
      z-index: 1;
    }
    
    .hero-slide.active {
      opacity: 1;
      z-index: 2;
    }
    
    .hero-img {
      height: 235px !important;
    }
    
    .logo-wrap {
      top: 195px !important;
      z-index: 100 !important;
    }
    .scroll-area {
      padding-top: 75px !important;
    }