@font-face {
  font-family: 'Jasendira';
  src: url('fonts/Jasendira-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #faf6ec;
  --cream-deep: #f1e9d8;
  --ink: #4a3a28;
  --ink-soft: #7a6650;
  --sunflower: #e8b923;
  --sunflower-deep: #c99a12;
  --leaf: #7a8b4f;
  --border: #e2d7c0;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Lato', sans-serif;
  line-height: 1.5;
}

.site-header {
  text-align: center;
  padding: 3.5rem 1rem 2rem;
  background: linear-gradient(180deg, var(--cream-deep), var(--cream) 85%);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Jasendira', cursive, serif;
  font-weight: normal;
  font-size: clamp(3.2rem, 11vw, 5.5rem);
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 200px;
  max-width: 60%;
  margin: 0.9rem auto 0;
}

.header-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sunflower-deep));
}

.header-divider .line:last-child {
  background: linear-gradient(90deg, var(--sunflower-deep), transparent);
}

.header-divider .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sunflower);
  box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.2);
  flex-shrink: 0;
}

.tagline {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--ink-soft);
}

.bread-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .bread-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .bread-grid { grid-template-columns: 1fr; }
}

.bread-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.bread-card:hover,
.bread-card:focus-within {
  border-color: var(--sunflower-deep);
  box-shadow: 0 4px 14px rgba(201, 154, 18, 0.15);
}

.bread-card.has-qty {
  border-color: var(--sunflower-deep);
  background: #fffdf7;
}

.bread-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.bread-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.bread-price {
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.qty-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--sunflower);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.bread-card.has-qty .qty-badge { display: flex; }

.stepper-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.22s ease, opacity 0.18s ease;
}

.bread-card.open .stepper-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: hidden;
  min-height: 0;
  padding-top: 0.5rem;
}

.stepper button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--sunflower-deep);
  background: var(--sunflower);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.stepper button:active { transform: scale(0.94); }

.stepper .qty-value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.tally-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--cream-deep);
  border-radius: var(--radius);
}

.tally-block { text-align: center; }

.tally-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.tally-amount {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 2.2rem;
  display: inline-block;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.tally-amount.tick-out {
  transform: translateY(-14px);
  opacity: 0;
}

.tally-amount.tick-in {
  transform: translateY(14px);
  opacity: 0;
  transition: none;
}

.tally-date {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 2.2rem;
}

.contact-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

#reserve-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

#reserve-form label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

#reserve-form input,
#reserve-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

#reserve-form input:focus,
#reserve-form textarea:focus {
  outline: 2px solid var(--sunflower);
  outline-offset: 1px;
}

.cart-summary {
  background: var(--cream-deep);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  min-height: 1.2rem;
}

.cart-summary .empty {
  color: var(--ink-soft);
  font-style: italic;
}

.cart-summary ul {
  margin: 0;
  padding-left: 1.1rem;
}

#submit-btn {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--sunflower);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

#submit-btn:hover { background: var(--sunflower-deep); }
#submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  min-height: 1.2rem;
  text-align: center;
  font-size: 0.9rem;
}

.form-status.error { color: #a8402f; }
.form-status.success { color: var(--leaf); }

.site-footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
}

.fine-print {
  max-width: 460px;
  margin: 0.75rem auto 0;
}

.thank-you-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 246, 236, 0.88);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
  overflow: hidden;
}

.thank-you-overlay.show {
  opacity: 1;
}

.thank-you-message {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  color: var(--ink);
  text-align: center;
  margin: 0;
  z-index: 2;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3), opacity 0.5s ease;
}

.thank-you-overlay.show .thank-you-message {
  transform: scale(1);
  opacity: 1;
}

.thank-you-particle {
  position: absolute;
  bottom: -10%;
  left: var(--x);
  font-size: var(--size);
  opacity: 0;
  animation: thankYouFloat var(--duration) ease-in var(--delay) forwards;
}

@keyframes thankYouFloat {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.9; }
  85% { opacity: 0.9; }
  100% { transform: translateY(-115vh) rotate(var(--rot)); opacity: 0; }
}
