body {
  background: #f0ebe1;
}

.royal-cart-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 8px);
  background: #1f6f3a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  z-index: 10030;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  max-width: min(90vw, 420px);
  text-align: center;
}

.royal-cart-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ordering-hub-page {
  background: #f0ebe1;
}

.ordering-hub-cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10010;
  padding: 16px;
}

.ordering-hub-cart-modal.is-open {
  display: flex;
}

.ordering-hub-cart-modal__content {
  width: min(100%, 860px);
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.ordering-hub-cart-modal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

.ordering-hub-cart-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.ordering-hub-cart-modal__title {
  margin: 0 0 14px;
  font-size: 18px;
}

.ordering-hub-cart-modal__items {
  max-height: 340px;
  overflow: auto;
  border: 1px solid #f0ebe1;
  border-radius: 10px;
  padding: 8px;
  background: #faf9f6;
}

.ordering-hub-cart-modal__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 6px;
  border-bottom: 1px dashed #ebe3d2;
}

.ordering-hub-cart-modal__item:last-child {
  border-bottom: 0;
}

.ordering-hub-cart-modal__item-thumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #e4ddb3;
  overflow: hidden;
  flex-shrink: 0;
}

.ordering-hub-cart-modal__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ordering-hub-cart-modal__item-name {
  font-size: 14px;
  font-weight: 500;
}

.ordering-hub-cart-modal__item-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.ordering-hub-cart-modal__item-meta {
  font-size: 12px;
  color: #888;
  font-weight: 400;
  line-height: 1.35;
}

.ordering-hub-cart-modal__item-price {
  font-weight: 700;
  color: #7d132f;
  font-size: 13px;
}

.ordering-hub-cart-modal__item-content {
  flex: 1 1 auto;
}

.ordering-hub-cart-modal__item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ordering-hub-cart-modal__item-foot {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ordering-hub-cart-modal__item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ordering-hub-cart-modal__remove {
  border: 0;
  background: transparent;
  color: #8b1e1e;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.ordering-hub-cart-modal__qty {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ordering-hub-cart-modal__qty-btn {
  width: 16px;
  height: 16px;
  border: 1px solid #d8cfa6;
  border-radius: 50%;
  background: #fff;
  color: #7d132f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}

.ordering-hub-cart-modal__qty-btn--plus {
  background: #ffca1b;
  border-color: #ffca1b;
}

.ordering-hub-cart-modal__qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ordering-hub-cart-modal__qty-num {
  min-width: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

.ordering-hub-cart-modal__summary {
  margin-top: 30px;
  background: #faf7ee;
  border: 1px solid #ebe3d2;
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.ordering-hub-cart-modal__summary-title {
  margin: 0 0 6px;
  font-size: 14px;
  color: #7d132f;
}

.ordering-hub-cart-modal__promo {
  border: 1px solid #e7dfcd;
  border-radius: 8px;
  background: #fff;
  color: #9e9a8d;
  font-size: 12px;
  padding: 8px 10px;
  margin-bottom: 6px;
}

.ordering-hub-cart-modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #5b5b5b;
}

.ordering-hub-cart-modal__row strong {
  color: #151515;
}

.ordering-hub-cart-modal__row--total {
  border-top: 1px dashed #d9d1bf;
  padding-top: 8px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
}

.ordering-hub-cart-modal__row--total strong {
  color: #7d132f;
}

.ordering-hub-cart-modal__actions {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ordering-hub-cart-modal__cta {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  background: #ffca1b;
  color: #2a1a00;
  border-radius: 6px;
  padding: 9px 10px;
  font-weight: 700;
  font-size: 12px;
  width: 100%;
}

.ordering-hub-cart-modal__cta.is-disabled {
  pointer-events: none;
  opacity: 0.45;
  cursor: not-allowed;
}

.ordering-hub-cart-modal__cta--secondary {
  background: #fff;
  border: 1px solid #e7dfcd;
}

.ordering-hub-account-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10020;
  padding: 16px;
}

.ordering-hub-account-modal.is-open {
  display: flex;
}

.ordering-hub-account-modal__content {
  width: min(100%, 520px);
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.ordering-hub-account-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.ordering-hub-account-modal__title {
  margin: 0;
  font-size: 22px;
}

.ordering-hub-account-modal__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.ordering-hub-account-modal__edit {
  border: 1px solid #e7dfcd;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ordering-hub-account-modal__view {
  display: none;
  gap: 10px;
}

.ordering-hub-account-modal__row {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #ece5d3;
  border-radius: 10px;
  background: #faf9f6;
}

.ordering-hub-account-modal__label {
  font-size: 12px;
  color: #676767;
}

.ordering-hub-account-modal__value {
  font-size: 14px;
  color: #181818;
}

.ordering-hub-account-modal__form {
  display: none;
  gap: 8px;
}

.ordering-hub-account-modal.is-view .ordering-hub-account-modal__view {
  display: grid;
}

.ordering-hub-account-modal.is-view .ordering-hub-account-modal__form {
  display: none;
}

.ordering-hub-account-modal.is-view .ordering-hub-account-modal__edit {
  display: inline-block;
}

.ordering-hub-account-modal.is-edit .ordering-hub-account-modal__view {
  display: none;
}

.ordering-hub-account-modal.is-edit .ordering-hub-account-modal__form {
  display: grid;
}

.ordering-hub-account-modal.is-edit .ordering-hub-account-modal__edit {
  display: none;
}

.ordering-hub-account-modal__form label {
  font-size: 13px;
  color: #5d5d5d;
}

.ordering-hub-account-modal__form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd4b0;
  border-radius: 10px;
  font-size: 14px;
}

.ordering-hub-account-modal__form button {
  margin-top: 10px;
  border: 0;
  border-radius: 10px;
  background: #ffca1b;
  color: #2a1a00;
  font-weight: 700;
  padding: 11px 14px;
  cursor: pointer;
}

/* Order history modal */
.ordering-hub-orders-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10025;
  padding: 16px;
}

.ordering-hub-orders-modal.is-open {
  display: flex;
}

.ordering-hub-orders-modal__content {
  width: min(100%, 420px);
  background: #fff;
  border-radius: 16px;
  padding: 0;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ordering-hub-orders-modal__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 44px 14px 12px;
  border-bottom: 1px solid #efe3d0;
  background: linear-gradient(135deg, #fffef9 0%, #fef6e1 100%);
  position: relative;
}

.ordering-hub-orders-modal__back {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: #f0e4c8;
  color: #3d2a14;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ordering-hub-orders-modal__title {
  margin: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.ordering-hub-orders-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.ordering-hub-orders-modal__body {
  padding: 14px 14px 18px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.ordering-hub-orders-modal__guest {
  margin: 0 0 12px;
  font-size: 14px;
  color: #555;
  text-align: center;
}

.ordering-hub-orders-modal__guest-cta {
  display: block;
  text-align: center;
  background: #ffca1b;
  color: #2a1a00;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
}

.ordering-hub-orders-modal__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ordering-hub-orders-modal__empty,
.ordering-hub-orders-modal__loading {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.ordering-hub-order-card {
  border: 1px solid #e8dfc8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.ordering-hub-order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #fef6e1;
  font-size: 13px;
}

.ordering-hub-order-card__id {
  color: #333;
}

.ordering-hub-order-card__id strong {
  font-weight: 700;
}

.ordering-hub-order-card__status {
  font-weight: 600;
  font-size: 13px;
}

.ordering-hub-order-card__status--pending {
  color: #777;
}

.ordering-hub-order-card__status--delivered {
  color: #1e7a3a;
}

.ordering-hub-order-card__status-inner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ordering-hub-order-card__tick {
  font-size: 12px;
}

.ordering-hub-order-card__items {
  margin: 0;
  padding: 12px 14px;
  list-style: none;
  font-size: 13px;
  color: #222;
  line-height: 1.5;
}

.ordering-hub-order-card__items li + li {
  margin-top: 4px;
}

.ordering-hub-order-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #ebe3d2;
  font-size: 12px;
  color: #666;
}

.ordering-hub-order-card__total {
  font-weight: 600;
  color: #333;
}

.ordering-hub-order-card__total strong {
  color: #7d132f;
}

/* Order confirmation (thank you) modal */
.ordering-hub-confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10030;
  padding: 16px;
}

.ordering-hub-confirm-modal.is-open {
  display: flex;
}

.ordering-hub-confirm-modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 380px);
  background: #fff;
  border-radius: 20px;
  padding: 0 20px 22px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
  background-color: #fff;
  background-image: var(--royal-confirm-modal-bg);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  height: 570px;
}

.ordering-hub-confirm-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #888;
  z-index: 2;
}

.ordering-hub-confirm-modal__icon-wrap {
  margin: -52px auto 12px;
  padding: 0;
  position: relative;
  z-index: 1;
}

.ordering-hub-confirm-modal__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffca1b;
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(255, 180, 0, 0.35);
}

.ordering-hub-confirm-modal__heading {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #111;
}

.ordering-hub-confirm-modal__sub {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

.ordering-hub-confirm-modal__order {
  margin: 0 0 16px;
  font-size: 14px;
  color: #555;
}

.ordering-hub-confirm-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 20px;
}

.ordering-hub-confirm-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}

.ordering-hub-confirm-modal__btn--ghost {
  background: #fff;
  border: 1px solid #c4a574;
  color: #5c3d1a;
}

.ordering-hub-confirm-modal__btn--primary {
  background: #ffca1b;
  border: 1px solid #ffca1b;
  color: #2a1a00;
}

@media (max-width: 820px) {
  .ordering-hub-cart-modal__layout {
    grid-template-columns: 1fr;
  }
  .ordering-hub-cart-modal__summary {
    margin-top: 0;
  }
}

.ordering-hub-avatar-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ffca1b;
}

.ordering-hub-shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: 16px;
}

.ordering-hub-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.ordering-hub-mode,
.ordering-hub-category {
  border: 1px solid #ffc61e;
  background: #f6ebcf;
  color: #000;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ordering-hub-mode--active,
.ordering-hub-category--active {
  background: #ffca1b;
  color: #403009;
  border-color: #ffca1b;
}

.ordering-hub-layout {
  display: grid;
  grid-template-columns: minmax(176px, 220px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.ordering-hub-categories-aside {
  position: sticky;
  top: 12px;
  align-self: start;
}

body.admin-bar .ordering-hub-categories-aside {
  top: 44px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .ordering-hub-categories-aside {
    top: 58px;
  }
}

.ordering-hub-categories-backdrop {
  display: none;
}

.ordering-hub-categories-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ordering-hub-categories-nav-head .ordering-hub-categories-heading {
  margin: 0;
  flex: 1;
}

.ordering-hub-categories-drawer-close {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #f0ebe1;
  color: #2a2418;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ordering-hub-categories-drawer-close:hover {
  background: #fff9e6;
}

.ordering-hub-categories-drawer-toggle {
  display: none;
}

.ordering-hub-categories-nav {
  background: #fff;
  border: 1px solid #e8e4da;
  border-radius: 14px;
  padding: 12px 10px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ordering-hub-categories-heading {
  margin: 0;
  padding-left: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b1f3a;
}

.ordering-hub-categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ordering-hub-categories-list li {
  margin: 0;
}

.ordering-hub-category--rail {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  white-space: normal;
  line-height: 1.3;
  font-size: 14px;
  background: #faf8f3;
  border: 1px solid #e8e4da;
  color: #2a2418;
  text-decoration: none;
}

.ordering-hub-category--rail:hover {
  border-color: #ffc61e;
  background: #fff9e6;
}

.ordering-hub-category--rail.ordering-hub-category--active {
  background: #ffca1b;
  color: #403009;
  border-color: #ffca1b;
  font-weight: 700;
}

.ordering-hub-category--rail.ordering-hub-category--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.ordering-hub-main {
  min-width: 0;
}

.ordering-hub-search-wrap {
  margin-bottom: 14px;
}

.ordering-hub-search {
  width: 100%;
  border: 1px solid #ddd4b0;
  border-radius: 999px;
  padding: 12px 18px;
  background: #fff;
  font-size: 15px;
}

.ordering-hub-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
}

.ordering-hub-content.ordering-hub-content--no-sidebar {
  grid-template-columns: 1fr;
}

.ordering-hub-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ordering-hub-products > .ordering-hub-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 12px;
  text-align: center;
  color: #5c5c5c;
  font-size: 14px;
  background: #faf8f3;
  border: 1px dashed #d9d4c7;
  border-radius: 12px;
}

.ordering-hub-card {
  border: 1px solid #e8e4da;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  height: 300px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ordering-hub-card-media-wrap {
  position: relative;
  margin-bottom: 10px;
}

.ordering-hub-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  background: #ffca1b;
  color: #3d2b00;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 6px;
}

.ordering-hub-card-media {
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
}

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

.ordering-hub-card-media--rose {
  background: #edc9d3;
}

.ordering-hub-card-media--lime {
  background: #d1d89b; 
}

.ordering-hub-card-media--aqua {
  background: #9ed2d8;
}

.ordering-hub-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ordering-hub-diet {
  flex-shrink: 0;
  margin: 0;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid #2e7d32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ordering-hub-diet--veg::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e7d32;
}

.ordering-hub-diet--nonveg {
  border-color: #c62828;
}

.ordering-hub-diet--nonveg::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c62828;
}

.ordering-hub-card-title {
  margin: 0;
  font-size: 15px;
  color: #1a1a1a;
  line-height: 1.25;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.ordering-hub-rating {
  margin: 2px 0 4px;
  color: #6f6f6f;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ordering-hub-rating-star {
  color: #f5a623;
  font-size: 13px;
  line-height: 1;
}

.ordering-hub-meta {
  margin: 0;
  color: #9a9a9a;
  font-size: 11px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
}

.ordering-hub-card-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ordering-hub-price {
  font-size: 16px;
  font-weight: 700;
  color: #6b1f3a;
}

.ordering-hub-price del{
  font-size: 12px;
  opacity: 0.5;
}

.ordering-hub-price del,
.ordering-hub-price ins {
  color: #6b1f3a;
}

.ordering-hub-add {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  background: #ffca1b;
  color: #4e3500;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
}

.ordering-hub-sidebar {
  border: 1px solid #e4ddcb;
  border-radius: 12px;
  background: #fff;
  padding: 20px;
  height: 420px;
}

.ordering-hub-sidebar-exotic {
  min-width: 0;
  height: 400px; /* fixed height to prevent layout jumps */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ordering-hub-bestseller-slider{
  width: 100%;
}

.ordering-hub-bestseller-track{
  position: relative;
  height: 300px; /* fixed slider height */
  min-height: 0;
  overflow: hidden;
}

.ordering-hub-bestseller-slide{
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  position: absolute;
  inset: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.ordering-hub-bestseller-slide.is-active{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.ordering-hub-bestseller-slide .ordering-hub-card--sidebar{
  width: 100%;
  margin: 0;
}

.ordering-hub-bestseller-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(70vh, 720px);
  overflow-y: auto;
  padding-right: 4px;
}

.ordering-hub-bestseller-empty {
  margin: 0;
  font-size: 13px;
  color: #8d8d8d;
}

.ordering-hub-card--sidebar {
  min-height: 260px;
  box-shadow: none;
}


.ordering-hub-card--sidebar .ordering-hub-card-title {
  font-size: 14px;
}

.ordering-hub-bestseller-slider{
  flex: 1;
  min-width: 0;
}

.ordering-hub-offer {
  background: linear-gradient(120deg, #f2cf38, #ffe684);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  min-height: 150px;
}

.ordering-hub-offer-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.1;
}

.ordering-hub-offer-link {
  display: inline-block;
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: #2d2d2d;
  text-decoration: none;
}

.ordering-hub-mini-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
  color: #252525;
}

.ordering-hub-view-all-wrap {
  margin-top: 12px;
}

.ordering-hub-view-all {
  width: 100%;
  border: 1px solid #ffc61e;
  border-radius: 10px;
  background: #F6EBCF;
  color: #6a4f1d;
  font-weight: 600;
  font-size: 14px;
  padding: 11px;
}

/* Quick view modal */
.ordering-hub-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 18px;
}

.ordering-hub-modal.is-open{
  display: flex;
}

.ordering-hub-modal__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #111;
  font-size: 24px;
  cursor: pointer;
  z-index: 10002;
}

.ordering-hub-modal__content{
  width: min(100%, 450px);
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  position: relative;
  padding: 32px 34px;
  z-index: 10001;
}

/* Wrapper: desktop uses contents (no layout box); mobile becomes flex column for bottom sheet scroll */
.ordering-hub-modal__scroll {
  display: contents;
}

.ordering-hub-quickview{
  display: grid;
  gap: 16px;
}

.ordering-hub-quickview__img .ordering-hub-card-media{
  height: 300px;
  border-radius: 12px;
}

.ordering-hub-quickview__body{
  padding: 5px 10px 40px 10px;
}

.ordering-hub-quickview__price{
  font-size: 26px;
  font-weight: 800;
  color: #6b1f3a;
  margin: 4px 0 10px;
}

.ordering-hub-options{
  display: none;
  margin-top: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.ordering-hub-options.is-visible{
  display: block;
}

.ordering-hub-options--quickview{
  margin-top: 0;
}

.ordering-hub-options__controls{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 18px;
}

.ordering-hub-options__label{
  font-size: 11px;
  font-weight: 800;
  color: rgba(0,0,0,0.55);
  letter-spacing: 0.02em;
}

.ordering-hub-options__select{
  width: 100%;
  max-width: 220px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 2px solid rgba(107, 31, 58, 0.35);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #2a1a00;
  cursor: pointer;
}

.ordering-hub-options__extras{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  flex: 1 1 auto;
  min-width: min(100%, 200px);
}

.ordering-hub-extra-option{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(100%, 160px);
  flex: 0 1 auto;
}

.ordering-hub-options__extras .ordering-hub-options__select{
  max-width: 220px;
}

.ordering-hub-quickview__footer{
  margin-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.ordering-hub-quickview__add{
  background: #ffca1b;
  color: #2a1a00;
  border-radius: 12px;
  padding: 0 18px;
  height: 38px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ordering-hub-modal .ordering-hub-add{
  display: none;
}

.ordering-hub-modal .ordering-hub-badge{
  display: none;
}

.ordering-hub-modal .ordering-hub-card-media-wrap{
  margin-bottom: 0;
}

.ordering-hub-quickview__body .ordering-hub-card-head{
  align-items: flex-start;
}

.ordering-hub-quickview__body [data-modal-head]{
  min-width: 0;
  width: 100%;
}

.ordering-hub-quickview__body .ordering-hub-card-title{
  font-size: 16px;
  font-weight: 800;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
}

.ordering-hub-quickview__body .ordering-hub-meta{
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
  overflow: visible;
  -webkit-box-orient: unset;
  max-height: none;
}

.ordering-hub-quickview__body .ordering-hub-options__label{
  overflow-wrap: anywhere;
}

@media (max-width: 760px){
  .ordering-hub-quickview{
    grid-template-columns: 1fr;
  }
  .ordering-hub-quickview__img .ordering-hub-card-media{
    height: 240px;
  }

  .ordering-hub-quickview__footer{
    flex-wrap: wrap;
    align-items: stretch;
  }
  .ordering-hub-options__controls{
    flex-direction: column;
    align-items: stretch;
  }
  .ordering-hub-options__select{
    max-width: none;
  }

  /* Hub grid cards: allow a few lines instead of single-line ellipsis on narrow screens */
  .ordering-hub-products .ordering-hub-card-title{
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: unset;
  }

  .ordering-hub-products .ordering-hub-card{
    min-height: 300px;
    height: auto;
  }
}

@media (max-width: 1180px) {
  .ordering-hub-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  /* Cart / account / … bottom sheets (product modal handled separately below). */
  .ordering-hub-cart-modal,
  .ordering-hub-account-modal,
  .ordering-hub-orders-modal,
  .ordering-hub-confirm-modal {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  /*
   * Product quick view: outer overlay scrolls (reliable on iOS). Inner __scroll is at least
   * full viewport tall + justify-end so short sheets sit on the bottom; tall sheets grow and scroll.
   */
  .ordering-hub-modal.is-open {
    display: block;
  }

  .ordering-hub-modal {
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .ordering-hub-modal__scroll {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
  }

  .ordering-hub-card{
    height: 300px;
    padding: 14px;
  }

  .ordering-hub-cart-modal__content,
  .ordering-hub-account-modal__content,
  .ordering-hub-orders-modal__content,
  .ordering-hub-confirm-modal__content {
    width: 100%;
    max-width: none;
    border-radius: 18px 18px 0 0;
    margin: 0;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    min-height: 0;
  }

  .ordering-hub-modal__content {
    width: 100%;
    max-width: none;
    border-radius: 18px 18px 0 0;
    margin: 0;
    flex: 0 0 auto;
    max-height: none;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 20px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  }

  /* Product quick view only — shorter hero + stacked controls */
  .ordering-hub-modal .ordering-hub-quickview__img .ordering-hub-card-media {
    height: min(180px, 28vh);
    max-height: 32vh;
  }

  .ordering-hub-modal .ordering-hub-quickview__footer {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .ordering-hub-modal .ordering-hub-options--quickview {
    width: 100%;
    margin-top: 0;
  }

  .ordering-hub-modal .ordering-hub-options__controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .ordering-hub-modal .ordering-hub-options__extras {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    width: 100%;
  }

  .ordering-hub-modal .ordering-hub-extra-option {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .ordering-hub-modal .ordering-hub-options__select {
    max-width: none;
    width: 100%;
  }

  .ordering-hub-modal .ordering-hub-quickview__add {
    width: 100%;
    flex-shrink: 0;
    min-height: 44px;
    height: auto;
    padding: 10px 18px;
    box-sizing: border-box;
  }

  .ordering-hub-cart-modal__content,
  .ordering-hub-account-modal__content,
  .ordering-hub-orders-modal__content,
  .ordering-hub-confirm-modal__content {
    padding: 16px 14px 14px;
  }

  .ordering-hub-cart-modal__layout {
    grid-template-columns: 1fr;
  }

  .ordering-hub-cart-modal__summary {
    margin-top: 0;
  }

  .ordering-hub-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ordering-hub-categories-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10005;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s;
  }

  .ordering-hub-shell.ordering-hub-categories-drawer-open .ordering-hub-categories-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .ordering-hub-categories-aside {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(88vw, 300px);
    max-width: 100%;
    z-index: 10006;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    align-self: start;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
  }

  body.admin-bar .ordering-hub-categories-aside {
    padding-top: 46px;
  }

  @media screen and (min-width: 783px) {
    body.admin-bar .ordering-hub-categories-aside {
      padding-top: 32px;
    }
  }

  .ordering-hub-shell.ordering-hub-categories-drawer-open .ordering-hub-categories-aside {
    transform: translateX(0);
  }

  .ordering-hub-categories-drawer-close {
    display: inline-flex;
  }

  .ordering-hub-categories-nav-head {
    margin-bottom: 8px;
    flex-shrink: 0;
  }

  .ordering-hub-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .ordering-hub-categories-drawer-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #d4a20a;
    background: linear-gradient(180deg, #ffe566 0%, #ffca1b 100%);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: #2a1a00;
    cursor: pointer;
    font-family: inherit;
    box-shadow:
      0 2px 0 rgba(0, 0, 0, 0.06),
      0 4px 12px rgba(212, 162, 10, 0.35);
    -webkit-tap-highlight-color: transparent;
  }

  .ordering-hub-categories-drawer-toggle__icon {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    box-shadow:
      0 6px 0 currentColor,
      0 12px 0 currentColor;
    flex-shrink: 0;
  }

  .ordering-hub-categories-drawer-toggle__text {
    white-space: nowrap;
  }

  .ordering-hub-categories-drawer-toggle:hover {
    filter: brightness(1.04);
  }

  .ordering-hub-categories-drawer-toggle:active {
    transform: translateY(1px);
    box-shadow:
      0 1px 0 rgba(0, 0, 0, 0.06),
      0 2px 6px rgba(212, 162, 10, 0.3);
  }

  .ordering-hub-search-wrap .ordering-hub-search {
    flex: 1;
    min-width: 0;
  }

  .ordering-hub-categories-nav {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    padding: 14px 14px 16px;
    border-radius: 0;
    border: 0;
    border-right: 1px solid #e8e4da;
    box-shadow: none;
    background: #fff;
  }

  .ordering-hub-categories-list.ordering-hub-categories-track {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
  }

  .ordering-hub-content {
    grid-template-columns: 1fr;
  }

  .ordering-hub-products {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .ordering-hub-sidebar{
    height: auto;
  }

  .ordering-hub-sidebar-exotic{
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .ordering-hub-bestseller-slider{
    height: auto;
  }

  .ordering-hub-bestseller-track{
    height: auto;
    min-height: 0;
  }

  .ordering-hub-bestseller-slide{
    height: auto;
  }

  .ordering-hub-bestseller-slider .ordering-hub-card{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 11px;
    height: auto;
    min-height: auto;
  }

  .ordering-hub-bestseller-slider .ordering-hub-card--sidebar .ordering-hub-card-media-wrap{
    flex: 0 0 86px;
    width: 86px;
    margin-bottom: 0;
  }

  .ordering-hub-bestseller-slider .ordering-hub-card--sidebar .ordering-hub-card-media{
    width: 86px;
    height: 86px;
    border-radius: 12px;
  }

  .ordering-hub-bestseller-slider .ordering-hub-card--sidebar .ordering-hub-card-content{
    flex: 1 1 auto;
    min-width: 0;
  }

  .ordering-hub-bestseller-slider .ordering-hub-card--sidebar .ordering-hub-card-title{
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .ordering-hub-bestseller-slider .ordering-hub-card--sidebar .ordering-hub-meta{
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}


.custom-rating {
  font-size: 14px;
  color: #f5a623;
  margin-top: 5px;
}

.stars {
  letter-spacing: 2px;
}