/* ===== Reset & base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #E9DFCC;
  font-family: 'Assistant', sans-serif;
  color: #2B2622;
  direction: rtl;
}
img { max-width: 100%; }
button { font-family: inherit; }
::selection { background: #5A3620; color: #fff; }

/* ===== Version toggle ===== */
.ver-toggle {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  background: #FFFDF8;
  padding: 5px;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(60, 40, 20, .28);
  border: 1px solid #E4D8C6;
  max-width: 94vw;
}
.ver-btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 999px;
  transition: all .2s;
  background: transparent;
  color: #5A3620;
  white-space: nowrap;
}
.ver-btn.active-a { background: #5A3620; color: #FFF9EE; }
.ver-btn.active-b { background: #3B2A1C; color: #FFF9EE; }

/* ===== Shared page ===== */
.page { min-height: 100vh; }
.page-a { background: #F7F0E4; color: #2B2622; }
.page-b { background: #EFE5D3; color: #2B2622; }

/* ===== Hero ===== */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s ease;
  z-index: 0;
}
.hero-bg.visible { opacity: 1; }
.hero-content { position: relative; z-index: 1; }

.hero-a { height: 78vh; min-height: 460px; }
.hero-a .hero-bg { background-image: linear-gradient(180deg, rgba(43,30,20,.32) 0%, rgba(43,30,20,.38) 45%, rgba(43,30,20,.72) 100%), var(--img); }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .32em; color: #F0DFC4; margin-bottom: 18px; }
.hero-title-a { margin: 0; font-family: 'Frank Ruhl Libre', serif; font-weight: 900; font-size: clamp(38px, 9vw, 92px); line-height: 1.05; color: #FFF9EE; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-rule { width: 66px; height: 2px; background: #E7C79A; margin: 26px auto 0; }

.hero-wrap-b { position: relative; background: #3B2A1C; }
.hero-b { height: 60vh; min-height: 380px; }
.hero-b .hero-bg { background-image: linear-gradient(180deg, rgba(59,42,28,.6), rgba(59,42,28,.85)), var(--img); }
.eyebrow-b { color: #E7C79A; }
.hero-title-b { margin: 0; font-family: 'Suez One', serif; font-weight: 400; font-size: clamp(34px, 9vw, 88px); line-height: 1.1; color: #FBF3E4; }
.hours-strip-b {
  background: #E7C79A; color: #3B2A1C;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 20px; padding: 14px 20px;
  font-weight: 700; font-size: 13.5px;
  text-align: center;
}
.hours-strip-b .sep { opacity: .4; }

/* ===== Intro text ===== */
.intro-a { max-width: 640px; margin: 0 auto; padding: 50px 24px 12px; text-align: center; }
.intro-text-a { margin: 0; font-family: 'Frank Ruhl Libre', serif; font-size: clamp(19px, 4vw, 27px); line-height: 1.6; color: #4A3B2E; }

.intro-b { max-width: 680px; margin: 0 auto; padding: 44px 24px 8px; text-align: center; }
.intro-text-b { margin: 0; font-weight: 500; font-size: clamp(16px, 3.4vw, 22px); line-height: 1.65; color: #4A3B2E; }
.intro-rule-b { width: 54px; height: 3px; background: #B07A3D; margin: 24px auto 0; border-radius: 2px; }

/* ===== Hours card (A) ===== */
.hours-wrap-a { max-width: 520px; margin: 0 auto; padding: 30px 20px 20px; }
.hours-card { border: 1px solid #E4D8C6; border-radius: 16px; background: #FFFDF8; padding: 22px 24px; text-align: center; box-shadow: 0 8px 24px rgba(90,54,32,.05); }
.hours-title { font-family: 'Frank Ruhl Libre', serif; font-weight: 700; font-size: 19px; color: #5A3620; margin-bottom: 10px; }
.hours-row { display: flex; justify-content: space-between; font-size: 15.5px; color: #4A3B2E; padding: 3px 0; }
.hours-row.hours-closed { color: #A2937F; }
.hours-time { font-weight: 700; }

/* ===== Menu section A (grid) ===== */
.menu-section-a { max-width: 900px; margin: 0 auto; padding: 40px 18px 140px; }
.menu-head { text-align: center; margin-bottom: 30px; }
.menu-kicker { font-weight: 700; font-size: 12px; letter-spacing: .3em; color: #A9764B; margin-bottom: 8px; }
.menu-title-a { margin: 0; font-family: 'Frank Ruhl Libre', serif; font-weight: 700; font-size: clamp(26px, 6vw, 42px); color: #5A3620; }
.menu-grid-a { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.card-a {
  background: #FFFDF8; border: 1px solid #EADFCB; border-radius: 20px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(90,54,32,.07); display: flex; flex-direction: column;
}
.card-a .card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.card-a .card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.card-a .card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-a .card-name { margin: 0; font-family: 'Frank Ruhl Libre', serif; font-weight: 700; font-size: clamp(20px, 5vw, 25px); color: #5A3620; }
.card-a .card-price { font-family: 'Frank Ruhl Libre', serif; font-weight: 700; font-size: 19px; color: #A9764B; white-space: nowrap; }
.card-a .card-desc { margin: 0; font-size: 14px; line-height: 1.6; color: #7A6E60; }
.details-btn-a { margin-top: 2px; align-self: flex-start; border: 1.5px solid #5A3620; background: transparent; color: #5A3620; font-weight: 600; font-size: 14px; padding: 9px 22px; border-radius: 999px; cursor: pointer; transition: all .2s; min-height: 40px; }
.details-btn-a:hover { background: #5A3620; color: #FFF9EE; }

/* ===== Menu section B (rows) ===== */
.menu-section-b { max-width: 720px; margin: 0 auto; padding: 36px 16px 140px; }
.menu-title-b { margin: 0 0 22px; font-family: 'Suez One', serif; font-weight: 400; font-size: clamp(24px, 6vw, 38px); color: #3B2A1C; text-align: center; }
.menu-list-b { display: flex; flex-direction: column; gap: 14px; }

.card-b { background: #FBF5E9; border: 1px solid #E0D2BB; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 26px rgba(59,42,28,.07); }
.card-b .card-row { display: flex; align-items: stretch; }
.card-b .card-img { width: 130px; min-height: 130px; flex: none; object-fit: cover; display: block; }
.card-b .card-body { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; }
.card-b .card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-b .card-name { margin: 0; font-family: 'Suez One', serif; font-weight: 400; font-size: clamp(18px, 4.6vw, 23px); color: #3B2A1C; }
.card-b .card-price { font-family: 'Suez One', serif; font-size: 17px; color: #B07A3D; white-space: nowrap; }
.card-b .card-desc { margin: 0; font-size: 13.5px; line-height: 1.5; color: #7A6E60; }
.details-btn-b { margin-top: 2px; align-self: flex-start; border: none; background: #3B2A1C; color: #FBF3E4; font-weight: 700; font-size: 13px; padding: 8px 18px; border-radius: 8px; cursor: pointer; min-height: 36px; }

/* ===== Accordion (shared shape, per-version colors) ===== */
.accordion { display: flex; flex-direction: column; gap: 9px; }
.accordion-a { margin-top: 8px; border-top: 1px dashed #E0D3BC; padding-top: 14px; }
.accordion-b { padding: 6px 16px 18px; background: #F5EDDD; }
.accordion-b .accordion-inner { padding-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.accordion-label { font-weight: 700; font-size: 11.5px; letter-spacing: .1em; color: #A2937F; }

.opt-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; cursor: pointer; border: 1px solid #EFE6D6; transition: background .15s; background: #FCFAF4; }
.opt-row.selected-a { background: #F4ECDC; }
.opt-row.selected-b { background: #F4ECDC; border-color: #E4D6BF; }
.opt-thumb-wrap { position: relative; flex: none; }
.opt-thumb { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid #E4D8C6; }
.opt-ring { position: absolute; inset: -2px; border-radius: 50%; border: 3px solid #5A3620; box-shadow: 0 0 0 3px rgba(90,54,32,.14); display: none; }
.opt-ring.show { display: block; }
.opt-info { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.opt-name { font-weight: 600; font-size: 15px; color: #2B2622; }
.opt-price { font-weight: 600; font-size: 12.5px; color: #A9764B; }
.opt-check { width: 25px; height: 25px; flex: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; border: 2px solid #D8CBB6; background: #fff; color: #FFF9EE; }
.opt-check.checked { border-color: #5A3620; background: #5A3620; }

.add-btn { margin-top: 8px; border: none; color: #FFF9EE; font-weight: 700; font-size: 15px; padding: 14px; border-radius: 13px; cursor: pointer; width: 100%; min-height: 46px; }
.add-btn-a { background: #5A3620; }
.add-btn-b { background: #6B4423; border-radius: 11px; }
.wa-btn { margin-top: 0; border: none; background: #1FA855; color: #fff; font-weight: 700; font-size: 14px; padding: 12px; border-radius: 13px; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; }
.wa-btn-b { border-radius: 11px; }
.wa-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #fff; }

/* ===== Floating cart button ===== */
.cart-fab {
  position: fixed; bottom: 20px; left: 20px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  background: #5A3620; color: #FFF9EE; border: none; border-radius: 999px;
  padding: 14px 20px; cursor: pointer;
  box-shadow: 0 12px 34px rgba(90,54,32,.35);
  font-weight: 700; font-size: 14.5px;
}
.page-b ~ .cart-fab, #verB:not([hidden]) ~ .cart-fab { background: #3B2A1C; border-radius: 14px; }
.cart-count { background: #FFF9EE; color: #5A3620; border-radius: 999px; min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12.5px; padding: 0 6px; }
.cart-fab .dot { opacity: .55; }

/* ===== Sidecart ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(43,30,20,.48); z-index: 250; animation: fadeIn .3s ease; }
.cart-overlay[hidden] { display: none; }
.cart-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 260;
  width: min(390px, 92vw);
  background: #FBF6EC;
  box-shadow: 10px 0 50px rgba(43,30,20,.28);
  display: flex; flex-direction: column;
  animation: slideIn .34s cubic-bezier(.4,0,.2,1);
}
.cart-drawer[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }

.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; border-bottom: 1px solid #EDE3D2; }
.cart-title { font-family: 'Frank Ruhl Libre', serif; font-weight: 700; font-size: 21px; color: #5A3620; }
.cart-close { border: none; background: #F0E7D6; color: #5A3620; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; line-height: 1; }

.cart-lines { flex: 1; overflow-y: auto; padding: 6px 20px; }
.cart-empty { padding: 50px 10px; text-align: center; color: #A2937F; }
.cart-empty .t { font-family: 'Frank Ruhl Libre', serif; font-size: 19px; color: #8A7B6A; margin-bottom: 6px; }
.cart-line { display: flex; gap: 10px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #EDE3D2; }
.cart-line .name { font-weight: 700; font-size: 15.5px; color: #2B2622; }
.cart-line .opts { font-weight: 500; font-size: 12.5px; color: #8A7B6A; margin-top: 3px; }
.cart-line .price { font-weight: 700; font-size: 14.5px; color: #5A3620; white-space: nowrap; flex: 1; text-align: left; }
.cart-line .remove { border: none; background: transparent; color: #C3B5A2; font-size: 19px; cursor: pointer; line-height: 1; padding: 0 2px; }

.cart-footer { border-top: 1px solid #E4D8C6; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 13px; background: #FFFDF8; }
.cart-sum-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 18px; color: #2B2622; }
.pay-btn { border: none; background: #D3C5AF; color: #FBF6EC; font-weight: 700; font-size: 15.5px; padding: 14px; border-radius: 13px; cursor: not-allowed; width: 100%; min-height: 46px; }
.pay-logos { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pay-logo { font-weight: 800; font-size: 11px; background: #fff; border: 1px solid #E4D8C6; border-radius: 6px; padding: 4px 8px; }
.pay-logo.visa { color: #1A1F71; letter-spacing: .04em; }
.pay-logo.mc { color: #B01924; }
.pay-logo.pp { color: #003087; }
.pay-logo.amex { color: #016FD0; }
.pay-note { text-align: center; font-weight: 500; font-size: 11px; color: #A99B87; }

/* ===== Mobile refinements ===== */
@media (max-width: 640px) {
  .ver-btn { font-size: 12.5px; padding: 8px 13px; }
  .card-b .card-img { width: 100px; min-height: 100px; }
  .card-b .card-desc { display: none; }
  .cart-fab { bottom: 14px; left: 14px; padding: 12px 16px; font-size: 13.5px; }
  .menu-section-a, .menu-section-b { padding-bottom: 110px; }
}

@media (max-width: 380px) {
  .card-b .card-row { flex-direction: column; }
  .card-b .card-img { width: 100%; aspect-ratio: 16/9; min-height: 0; }
}
