/* ===== הזמנה ועגלה ===== */
body.order-page {
  background: #f7f2ea;
}

body.order-page .site-header {
  position: fixed;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(26, 50, 96, 0.08);
}

body.order-page main {
  padding-top: calc(var(--hk-top-h, 84px) + 1.5rem);
  padding-bottom: 3rem;
}

.order-page__inner {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.order-page__title {
  font-family: var(--hk-font, "Assistant", sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--hk-navy, #1a3260);
  margin-bottom: 1.5rem;
  text-align: center;
}

.order-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.order-panel {
  background: #fff;
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 8px 32px rgba(26, 50, 96, 0.08);
}

.order-panel h2 {
  font-family: var(--hk-font, "Assistant", sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--hk-orange, #f26522);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(242, 101, 34, 0.2);
}

.order-cart-empty {
  text-align: center;
  color: var(--hk-gray, #4a4a4a);
  padding: 2rem 1rem;
}

.order-cart-empty a {
  color: var(--hk-orange, #f26522);
  font-weight: 700;
}

.order-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(26, 50, 96, 0.08);
}

.order-line__info {
  flex: 1;
  min-width: 0;
}

.order-line__name {
  font-weight: 700;
  color: var(--hk-navy, #1a3260);
  font-size: 0.95rem;
}

.order-line__price {
  font-size: 0.85rem;
  color: var(--hk-gray, #4a4a4a);
}

.order-line__qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.order-line__qty button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f0ebe3;
  color: var(--hk-navy, #1a3260);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.order-line__qty span {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.order-line__remove {
  border: none;
  background: none;
  color: #c44;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.25rem;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--hk-navy, #1a3260);
  font-family: var(--hk-font, "Assistant", sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--hk-navy, #1a3260);
}

.order-total strong {
  color: var(--hk-orange, #f26522);
  font-size: 1.35rem;
}

.order-form label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--hk-navy, #1a3260);
  margin-bottom: 0.35rem;
}

.order-form input,
.order-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 2px solid #e8e0d4;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: #fff;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--hk-orange, #f26522);
}

.order-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.order-fieldset {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}

.order-fieldset > legend {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--hk-navy, #1a3260);
  margin-bottom: 0.5rem;
}

.order-fulfillment-options {
  margin-bottom: 0;
}

.order-delivery {
  margin-bottom: 0.5rem;
  padding: 1rem;
  background: rgba(26, 50, 96, 0.04);
  border-radius: 14px;
  border: 2px solid #e8e0d4;
}

.order-delivery[hidden] {
  display: none;
}

.order-delivery__title {
  font-weight: 800;
  color: var(--hk-orange, #f26522);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.order-delivery label {
  margin-bottom: 0.35rem;
}

.order-delivery input {
  margin-bottom: 0.85rem;
}

.city-autocomplete {
  position: relative;
  margin-bottom: 0.85rem;
}

.city-autocomplete input {
  margin-bottom: 0;
  width: 100%;
}

.city-autocomplete__list {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 2px solid #e8e0d4;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(26, 50, 96, 0.12);
}

.city-autocomplete__list[hidden] {
  display: none;
}

.city-autocomplete__item {
  padding: 0.55rem 0.85rem;
  font-family: var(--hk-font, "Assistant", sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hk-navy, #1a3260);
  cursor: pointer;
}

.city-autocomplete__item:hover,
.city-autocomplete__item--active {
  background: rgba(242, 101, 34, 0.1);
  color: var(--hk-orange-dark, #d95518);
}

.order-pay-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.order-pay-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 2px solid #e8e0d4;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.order-pay-option:has(input:checked) {
  border-color: var(--hk-orange, #f26522);
  background: rgba(242, 101, 34, 0.06);
}

.order-pay-option input {
  margin-top: 0.2rem;
  accent-color: var(--hk-orange, #f26522);
}

.order-pay-option strong {
  display: block;
  color: var(--hk-navy, #1a3260);
  font-size: 0.95rem;
}

.order-pay-option small {
  color: var(--hk-gray, #4a4a4a);
  font-size: 0.8rem;
}

.order-pay-option--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.order-submit {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 999px;
  background: var(--hk-orange, #f26522);
  color: #fff;
  font-family: var(--hk-font, "Assistant", sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(242, 101, 34, 0.35);
  transition: transform 0.2s, background 0.2s;
}

.order-submit:hover:not(:disabled) {
  background: var(--hk-orange-dark, #d95518);
  transform: translateY(-2px);
}

.order-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.order-msg {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  text-align: center;
}

.order-msg--error {
  background: #fde8e8;
  color: #a33;
}

.order-msg--info {
  background: #e8f4fd;
  color: #1a3260;
}

/* תפריט — כפתור הוספה + סרגל עגלה */
.menu-hakfar__item--order {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.menu-hakfar__item-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  width: 100%;
}

.menu-hakfar__add {
  align-self: flex-start;
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--hk-orange, #f26522);
  color: #fff;
  font-family: var(--hk-font, "Assistant", sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.menu-hakfar__add:hover {
  background: var(--hk-orange-dark, #d95518);
  transform: translateY(-1px);
}

.menu-hakfar__add--done {
  background: #2a7a3b;
}

.cart-bar {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem 0.7rem 1rem;
  max-width: min(96vw, 420px);
  background: var(--hk-navy, #1a3260);
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(26, 50, 96, 0.4);
  font-family: var(--hk-font, "Assistant", sans-serif);
}

.cart-bar[hidden] {
  display: none;
}

.cart-bar__body {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.cart-bar__icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.cart-bar__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.cart-bar__main {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
}

.cart-bar__sub {
  font-weight: 500;
  font-size: 0.75rem;
  opacity: 0.88;
  line-height: 1.2;
}

.cart-bar__btn {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  background: var(--hk-orange, #f26522);
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(242, 101, 34, 0.45);
  transition: background 0.2s, transform 0.2s;
}

.cart-bar__btn:hover {
  background: var(--hk-orange-dark, #d95518);
  transform: translateY(-1px);
}

/* דף אישור */
.order-result {
  text-align: center;
  max-width: 520px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(26, 50, 96, 0.1);
}

.order-result__icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.order-result h1 {
  font-family: var(--hk-font, "Assistant", sans-serif);
  color: var(--hk-navy, #1a3260);
  margin-bottom: 0.75rem;
}

.order-result p {
  color: var(--hk-gray, #4a4a4a);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.order-result__id {
  font-weight: 800;
  color: var(--hk-orange, #f26522);
}

.order-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.order-result__actions a {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  background: var(--hk-orange, #f26522);
  color: #fff;
}

.order-result__actions a.order-result__link--ghost {
  background: transparent;
  color: var(--hk-navy, #1a3260);
  border: 2px solid var(--hk-navy, #1a3260);
}

@media (max-width: 768px) {
  .order-layout {
    grid-template-columns: 1fr;
  }

  .order-form__row {
    grid-template-columns: 1fr;
  }

  .cart-bar {
    width: min(96vw, 420px);
    flex-wrap: wrap;
    padding: 0.75rem;
    gap: 0.65rem;
  }

  .cart-bar__btn {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }
}
