/* =========================================================
   OUR FAMILY TABLE
   MAIN STYLESHEET
========================================================= */


/* =========================================================
   GLOBAL
========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;

  font-family: Arial, sans-serif;

  background: #f8f1e8;
  color: #24170f;
}

body {
  padding-top: 0;
  padding-bottom: 115px;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}


/* =========================================================
   HEADER
========================================================= */

.app-header {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  height: 72px;

  z-index: 10000;

  background: rgba(248, 241, 232, 0.98);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid #ead8c2;

  padding: 0 18px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-size: 22px;
  font-weight: 900;

  color: #24170f;

  cursor: pointer;
}

.header-cart-btn {
  position: relative;

  border: none;

  background: #24170f;
  color: white;

  padding: 12px 18px;

  border-radius: 999px;

  font-size: 17px;
  font-weight: bold;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.header-cart-btn:hover {
  transform: scale(1.08);

  background: #3a271b;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.cart-badge {
  position: absolute;

  top: -8px;
  right: -8px;

  background: #b45f2a;
  color: white;

  min-width: 25px;
  height: 25px;

  padding: 0 7px;

  border-radius: 999px;

  font-size: 14px;
  line-height: 25px;
  font-weight: bold;
}


/* =========================================================
   SCREENS
========================================================= */

.screen {
  display: none;

  min-height: 100vh;

  padding: 86px 18px 18px;
}

.screen.active {
  display: block;
}


/* =========================================================
   HOME / HERO
========================================================= */

#homeScreen {
  padding: 0;
}

.hero {
  height: calc(100vh - 68px);

  min-height: 620px;

  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  padding: 28px;

  color: white;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";

  position: absolute;

  inset: 0;

  background: rgba(0, 0, 0, 0.48);
}

.hero-content {
  position: relative;

  z-index: 2;

  width: 100%;
  max-width: 520px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.pill {
  display: inline-block;

  background: #b45f2a;

  padding: 10px 18px;

  border-radius: 999px;

  font-weight: bold;

  margin-bottom: 24px;
}

.hero h1 {
  font-size: 54px;

  line-height: 1.05;

  margin: 0 0 16px;

  font-weight: 900;
}

.hero p {
  font-size: 22px;

  line-height: 1.45;

  max-width: 420px;

  margin: 0 0 32px;
}

.event-card {
  width: 100%;
  max-width: 360px;

  background: rgba(255, 255, 255, 0.16);

  border: 1px solid rgba(255, 255, 255, 0.25);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 26px;

  padding: 22px;

  display: flex;
  flex-direction: column;

  gap: 12px;

  margin-bottom: 34px;
}

.event-card strong {
  font-size: 21px;
}

.event-card span {
  font-size: 17px;

  opacity: 0.95;
}


/* =========================================================
   GENERAL BUTTONS
========================================================= */

.primary-btn,
.back-btn {
  width: 100%;

  border: none;

  border-radius: 22px;

  padding: 20px;

  font-size: 22px;
  font-weight: bold;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.primary-btn {
  background: #b45f2a;

  color: white;

  box-shadow: 0 8px 20px rgba(180, 95, 42, 0.28);
}

#homeScreen .primary-btn {
  max-width: 340px;

  height: 74px;

  border-radius: 999px;

  font-size: 26px;
  font-weight: 900;
}

.primary-btn:hover {
  transform: scale(1.03);

  background: #c96d33;

  box-shadow: 0 12px 28px rgba(180, 95, 42, 0.45);
}

.primary-btn:active {
  transform: scale(0.98);
}

.back-btn {
  background: #ead8c2;

  color: #24170f;

  margin-bottom: 20px;
}

.back-btn:hover {
  transform: scale(1.02);

  background: #ddc2a3;
}


/* =========================================================
   MENU
========================================================= */

.page-title {
  font-size: 38px;
  font-weight: 800;

  margin: 0 0 24px;

  color: #24170f;
}

.loading {
  text-align: center;

  padding: 40px 10px;

  font-size: 22px;
  font-weight: bold;
}

#menu {
  display: grid;

  gap: 24px;
}

.category-title {
  font-size: 26px;

  margin: 24px 0 0;

  border-bottom: 2px solid #ead8c2;

  padding-bottom: 10px;
}

.menu-card {
  background: white;

  border-radius: 28px;

  overflow: hidden;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.menu-card:hover {
  transform: translateY(-4px);

  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}


/* =========================================================
   MENU PHOTOS

   Blurred copy fills the background.
   Sharp original stays centered and fully visible.
========================================================= */

.menu-image-wrap {
  position: relative;

  width: 100%;
  height: 280px;

  overflow: hidden;

  background: #eee;
}


/* BLURRED BACKGROUND */

.menu-image-blur {
  position: absolute;

  inset: -25px;

  z-index: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: blur(22px);

  transform: scale(1.15);

  opacity: 0.78;
}


/* SOFT OVERLAY */

.menu-image-wrap::after {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 1;

  background: rgba(255, 255, 255, 0.03);

  pointer-events: none;
}


/* SHARP ORIGINAL IMAGE */

.menu-image-main {
  position: absolute;

  top: 50%;
  left: 50%;

  z-index: 2;

  display: block;

  width: 92%;
  height: 92%;

  transform: translate(-50%, -50%);

  object-fit: contain;
  object-position: center;

  background: transparent;
}


/* MENU INFORMATION */

.menu-info {
  padding: 22px;
}

.menu-info h3 {
  margin: 0 0 8px;

  font-size: 28px;
}

.menu-info p {
  margin: 0 0 14px;

  font-size: 19px;

  line-height: 1.4;

  color: #625245;
}

.price {
  font-size: 23px;
  font-weight: bold;

  color: #b45f2a;
}


/* =========================================================
   ITEM DETAIL
========================================================= */

.detail-image-wrap {
  position: relative;

  width: calc(100% + 36px);
  height: 340px;

  margin: -18px -18px 0;

  overflow: hidden;

  background: #eee;
}


/* BLURRED BACKGROUND */

.detail-image-blur {
  position: absolute;

  inset: -30px;

  z-index: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: blur(25px);

  transform: scale(1.15);

  opacity: 0.82;
}


/* SHARP ORIGINAL */

.detail-image-main {
  position: absolute;

  z-index: 2;

  top: 50%;
  left: 50%;

  width: 90%;
  height: 90%;

  transform: translate(-50%, -50%);

  object-fit: contain;
  object-position: center;

  display: block;
}

.detail-content {
  padding: 22px 0 120px;
}

.detail-content h2 {
  font-size: 38px;

  margin: 12px 0 8px;
}

.detail-content p {
  font-size: 20px;

  line-height: 1.4;

  color: #625245;
}

.detail-content h3 {
  font-size: 24px;

  margin: 28px 0 14px;
}


/* =========================================================
   ITEM OPTIONS
========================================================= */

.option-list {
  display: grid;

  gap: 14px;
}

.option-card {
  background: white;

  border: 2px solid #ead8c2;

  border-radius: 22px;

  padding: 18px;

  font-size: 21px;
  font-weight: bold;

  cursor: pointer;

  display: flex;
  justify-content: space-between;

  gap: 12px;
}

.option-card.selected {
  border-color: #b45f2a;

  background: #fff3e6;

  box-shadow: 0 6px 18px rgba(180, 95, 42, 0.2);
}


/* =========================================================
   COMBO CHOICES
========================================================= */

.choice-instructions {
  font-size: 18px;

  color: #625245;

  margin-bottom: 14px;
}

.combo-choices {
  display: grid;

  grid-template-columns: 1fr;

  gap: 12px;
}

.combo-choice {
  position: relative;

  background: white;

  border: 2px solid #ead8c2;

  border-radius: 20px;

  padding: 18px;

  font-size: 20px;
  font-weight: 700;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.combo-choice:hover {
  transform: scale(1.01);

  border-color: #b45f2a;
}

.combo-choice.selected {
  background: #fff3e6;

  border-color: #b45f2a;
}

.combo-choice.selected::after {
  content: "✓";

  position: absolute;

  right: 18px;

  color: #b45f2a;

  font-weight: 900;
}


/* =========================================================
   QUANTITY
========================================================= */

.qty-row {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 26px;

  background: white;

  border-radius: 24px;

  padding: 18px;
}

.qty-row button {
  width: 66px;
  height: 66px;

  border: none;

  border-radius: 50%;

  background: #b45f2a;

  color: white;

  font-size: 38px;
}

.qty-row span {
  font-size: 36px;
  font-weight: bold;

  min-width: 54px;

  text-align: center;
}


/* =========================================================
   ITEM DETAIL BOTTOM ACTION
========================================================= */

.bottom-action {
  position: fixed;

  left: 12px;
  right: 12px;
  bottom: 12px;

  z-index: 1000;

  background: rgba(248, 241, 232, 0.92);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 26px;

  padding: 12px;
}


/* =========================================================
   CART
========================================================= */

#cartItems {
  display: grid;

  gap: 16px;

  margin: 22px 0;
}

.cart-item {
  display: grid;

  grid-template-columns: 42% 1fr;

  gap: 18px;

  align-items: center;

  background: white;

  border-radius: 22px;

  padding: 16px;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.cart-item img {
  width: 100%;
  height: 150px;

  max-height: 150px;

  border-radius: 18px;

  object-fit: cover;

  background: #eee;
}

.cart-item-info {
  display: flex;

  flex-direction: column;

  justify-content: center;
}

.cart-title-row {
  display: flex;

  justify-content: space-between;
  align-items: flex-start;

  gap: 12px;
}

.cart-title-row h3 {
  font-size: 24px;

  margin: 0 0 4px;
}

.cart-title-row p {
  font-size: 17px;

  margin: 0;
}

.cart-price {
  color: #b45f2a;

  font-size: 23px;
  font-weight: 900;

  white-space: nowrap;
}

.cart-control-row {
  margin-top: 14px;

  display: flex;

  flex-direction: column;

  align-items: center;
}

.cart-qty-row {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 18px;
}

.cart-qty-row button {
  width: 48px;
  height: 48px;

  border: none;

  border-radius: 50%;

  background: #b45f2a;

  color: white;

  font-size: 30px;
  font-weight: bold;
}

.cart-qty-row span {
  font-size: 28px;
  font-weight: 800;

  min-width: 32px;

  text-align: center;
}

.remove-btn {
  margin-top: 12px;

  min-width: 120px;

  border: none;

  background: #c13f2d;

  color: white;

  padding: 10px 18px;

  border-radius: 999px;

  font-size: 17px;
  font-weight: 700;
}

.cart-bottom-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-top: 12px;
}

.remove-wrapper {
  display: flex;

  justify-content: center;

  margin-top: 14px;
}

.cart-selections {
  margin-top: 6px !important;

  font-size: 16px !important;

  color: #7b6a5c;

  line-height: 1.4;
}

.cart-total {
  display: flex;

  justify-content: space-between;
  align-items: center;

  background: white;

  border-radius: 20px;

  padding: 18px 20px;

  margin: 20px 0;

  font-size: 26px;
  font-weight: 700;
}

.cart-total strong {
  color: #b45f2a;

  font-size: 32px;
}


/* =========================================================
   CHECKOUT
========================================================= */

label {
  display: block;

  margin-top: 18px;

  font-size: 20px;
  font-weight: bold;
}

input,
select,
textarea {
  width: 100%;

  padding: 20px;

  margin-top: 8px;

  border: 1px solid #d8c8b8;

  border-radius: 18px;

  font-size: 20px !important;

  background: white;
}

textarea {
  min-height: 120px;

  resize: vertical;
}

.readonly {
  background: #f1e8df;

  font-weight: bold;
}

.place-btn {
  margin-top: 26px;
}


/* =========================================================
   CONFIRMATION
========================================================= */

.confirmation {
  margin-top: 80px;

  background: white;

  border-radius: 30px;

  padding: 34px 24px;

  text-align: center;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.checkmark {
  width: 86px;
  height: 86px;

  margin: 0 auto 18px;

  border-radius: 50%;

  background: #2f8f46;

  color: white;

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 52px;
}

.confirmation h2 {
  font-size: 34px;

  margin: 0 0 12px;
}

.confirmation p {
  font-size: 20px;
}

.confirmation-payment-message {
  font-size: 18px !important;

  line-height: 1.5;

  margin-top: 16px;
}

.confirmation-status-message {
  font-size: 16px !important;

  line-height: 1.5;

  color: #625245;
}


/* =========================================================
   FLOATING CART
========================================================= */

.floating-cart {
  position: fixed;

  left: 12px;
  right: 12px;
  bottom: 12px;

  max-width: 760px;

  margin: auto;

  z-index: 9999;

  background: #24170f;

  color: white;

  border-radius: 24px;

  padding: 14px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.floating-cart:hover {
  transform: scale(1.03);

  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.floating-summary {
  display: flex;

  justify-content: space-between;
  align-items: center;

  font-size: 22px;
  font-weight: bold;

  margin-bottom: 12px;
}

.floating-checkout-btn {
  width: 100%;

  border: none;

  border-radius: 18px;

  background: #b45f2a;

  color: white;

  padding: 16px;

  font-size: 20px;
  font-weight: bold;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.floating-checkout-btn:hover {
  transform: scale(1.02);

  background: #c96d33;

  box-shadow: 0 10px 24px rgba(180, 95, 42, 0.45);
}

.floating-checkout-btn:active {
  transform: scale(0.98);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 430px) {

  body {
    padding-bottom: 105px;
  }


  /* HEADER */

  .app-header {
    height: 68px;

    padding: 0 14px;
  }

  .header-logo {
    font-size: 19px;
  }

  .header-cart-btn {
    padding: 10px 16px;

    font-size: 16px;
  }


  /* SCREENS */

  .screen {
    padding: 82px 14px 18px;
  }

  #homeScreen {
    padding: 0;
  }


  /* HERO */

  .hero {
    height: calc(100vh - 68px);

    min-height: 570px;

    padding: 24px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 19px;

    margin-bottom: 28px;
  }

  .event-card {
    max-width: 320px;

    padding: 20px;

    margin-bottom: 28px;
  }

  #homeScreen .primary-btn {
    max-width: 310px;

    height: 68px;

    font-size: 24px;
  }


  /* MENU */

  .page-title {
    font-size: 34px;
  }

  #menu {
    gap: 20px;
  }

  .menu-card {
    border-radius: 24px;
  }


  /*
     MENU IMAGE

     Keep the card full width.

     The sharp image is centered inside the photo area.
     The blurred copy fills any unused space around it.
  */

  .menu-image-wrap {
    width: 100%;

    height: 230px;

    margin: 0;

    border-radius: 0;
  }

  .menu-image-blur {
    inset: -18px;

    filter: blur(18px);

    transform: scale(1.12);

    opacity: 0.76;
  }

  .menu-image-main {
    width: 88%;

    height: 90%;

    object-fit: contain;
    object-position: center;
  }

  .menu-info {
    padding: 20px;
  }

  .menu-info h3 {
    font-size: 25px;
  }

  .menu-info p {
    font-size: 17px;
  }

  .price {
    font-size: 21px;
  }


  /* ITEM DETAIL */

  .detail-image-wrap {
    width: calc(100% + 28px);

    height: 300px;

    margin: -14px -14px 0;
  }

  .detail-image-blur {
    inset: -22px;

    filter: blur(22px);

    transform: scale(1.12);
  }

  .detail-image-main {
    width: 88%;

    height: 90%;
  }

  .detail-content h2 {
    font-size: 34px;
  }


  /* CART */

  .cart-item {
    grid-template-columns: 38% 1fr;

    gap: 12px;

    padding: 14px;
  }

  .cart-item img {
    height: 140px;

    min-height: 130px;
    max-height: 150px;
  }

  .cart-item-info h3 {
    font-size: 22px;
  }

  .cart-item-info p {
    font-size: 17px;
  }

  .cart-title-row {
    flex-direction: column;

    gap: 4px;
  }

  .cart-price {
    font-size: 20px;
  }

  .cart-qty-row {
    gap: 12px;
  }

  .cart-qty-row button {
    width: 40px;
    height: 40px;

    font-size: 26px;
  }

  .cart-qty-row span {
    font-size: 24px;
  }


  /* CHECKOUT */

  label {
    font-size: 18px;
  }

  input,
  select,
  textarea {
    padding: 17px;

    font-size: 18px !important;
  }


  /* CONFIRMATION */

  .confirmation {
    margin-top: 35px;
  }


  /* FLOATING CART */

  .floating-cart {
    left: 10px;
    right: 10px;
    bottom: 10px;

    border-radius: 20px;
  }

  .floating-summary {
    font-size: 19px;
  }

  .floating-checkout-btn {
    font-size: 18px;
  }
}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 431px) and (max-width: 999px) {

  #menu {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-title {
    grid-column: 1 / -1;
  }

  .menu-image-wrap {
    height: 260px;
  }
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 1000px) {

  body {
    padding-bottom: 115px;
  }

  .screen {
    max-width: 1180px;

    margin: auto;
  }

  #homeScreen {
    max-width: none;
  }


  /* MENU */

  #menu {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-title {
    grid-column: 1 / -1;
  }

  .menu-image-wrap {
    height: 280px;
  }

  .menu-image-main {
    width: 94%;
    height: 92%;
  }

  .menu-info h3 {
    font-size: 23px;
  }

  .menu-info p {
    font-size: 16px;
  }


  /* ITEM DETAIL */

  .detail-image-wrap {
    height: 400px;

    border-radius: 0 0 30px 30px;
  }

  .detail-content,
  #cartScreen,
  #checkoutScreen,
  #confirmationScreen {
    max-width: 720px;

    margin-left: auto;
    margin-right: auto;
  }

  .bottom-action {
    max-width: 720px;

    margin: auto;
  }
}