/* Baker · minimal · yellow · white · black */
:root{
  --yellow:#FFCD00;
  --white:#ffffff;
  --ink:#000000;
  --muted:#666666;
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.23,1,0.32,1);
}

*, *::before, *::after{ box-sizing: border-box; margin: 0; padding: 0; }
html{ -webkit-tap-highlight-color: transparent; }

body{
  background: var(--white);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 80px;
}

.skip{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.shell{
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

header.shell{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 16px 10px;
}

.brand{
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot{
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
}

.saved-badge{
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--white);
}

main.shell{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

/* ---- Flashcard carousel ---- */
.carousel{
  position: relative;
}

.track{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 0;
}

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

.card{
  min-width: 100%;
  scroll-snap-align: center;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: transform var(--transition);
}

.card.active{
  transform: scale(1.02);
  z-index: 2;
}

.card .thumb{
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #f5f5f5;
  overflow: hidden;
}

.card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card .chip{
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--ink);
}

.card .price{
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--yellow);
  margin-top: 10px;
}

.card h3{
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-top: 8px;
  text-align: center;
}

.card p{
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.5;
  margin-top: 4px;
}

/* ---- Horizontal centered action bar below card ---- */
.card-actions{
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 4px;
}

.card-actions .fab{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  background: var(--white);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.1s, background 0.2s;
}

.card-actions .fab:active{ transform: scale(0.9); }

.card-actions .fab svg{
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5px;
}

.card-actions .fab-order{ background: var(--yellow); border-color: var(--ink); }
.card-actions .fab-save.saved{ background: var(--yellow); border-color: var(--ink); }

/* ---- Hint ---- */
.hint{
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 900;
  padding-bottom: 6px;
}

/* ---- Order modal: centered, minimal yellow/white/black ---- */
dialog.modal{
  border: none;
  border-radius: 24px;
  padding: 0;
  background: var(--white);
  border: 3px solid var(--yellow);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  max-width: 400px;
  width: 88vw;
  color: var(--ink);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

dialog::backdrop{
  background: rgba(0,0,0,0.3);
}

.modal-card{
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  position: relative;
}

.modal-close{
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 8px;
}

.modal-close:hover{ color: var(--ink); background: #f2f2f2; }

.order-head{ display: flex; flex-direction: column; gap: 4px; }

.item-line{
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--yellow);
  letter-spacing: 0.02em;
}

/* Contact grid: icon-only buttons */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-contact{
  height: 56px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  font-family: inherit;
  font-weight: 900;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s, border-color 0.2s;
}

.btn-contact:active{ transform: scale(0.96); }

.contact-label{
  letter-spacing: 0.02em;
}

.btn-wa{ border-color: #25D366; color: #128c7e; }
.btn-wa:active{ background: #e8fbee; border-color: #128c7e; }

.btn-tg{ border-color: #0088CC; color: #0088CC; }
.btn-tg:active{ background: #e7f3fb; border-color: #0088CC; }

.btn-call{ border-color: var(--ink); background: var(--yellow); color: var(--ink); }
.btn-call:active{ background: #e6b800; }

.btn-mail{ border-color: var(--ink); background: var(--yellow); color: var(--ink); }
.btn-mail:active{ background: #e6b800; }

.note{
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  border: 3px solid var(--yellow);
  font-size: 0.85rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show{
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 460px){
  header.shell{ padding: 16px 16px 8px; }
  .card-actions{ gap: 8px; }
  .card-actions .fab{ width: 48px; height: 48px; }
  .contact-grid{ grid-template-columns: 1fr; }
  .btn-contact{ height: 52px; }
}
