/* Mock order system + shared QoL chrome */

/* —— Skip link —— */
.ws-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #e7272d;
  color: #fff;
  padding: 10px 16px;
  z-index: 10000;
  font-weight: 700;
}
.ws-skip-link:focus {
  left: 8px;
  top: 8px;
}

/* —— Open badge —— */
[data-ws-open-badge] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #333;
}
[data-ws-open-badge].is-open .ws-open-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}
[data-ws-open-badge].is-closed .ws-open-dot {
  background: #ef4444;
}
.ws-open-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.ws-open-next {
  color: #777;
  font-weight: 400;
}
.header-top-left [data-ws-open-badge] {
  margin-left: 8px;
  vertical-align: middle;
}

/* —— Floating order button —— */
.ws-float-order {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e7272d;
  color: #fff !important;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(231, 39, 45, 0.4);
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ws-float-order:hover {
  transform: translateY(-2px);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(231, 39, 45, 0.5);
}
.ws-float-order .fa {
  font-size: 16px;
}
.ws-cart-badge {
  background: #111;
  color: #fff;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.ws-float-order.has-items {
  animation: ws-pulse 2s ease infinite;
}
@keyframes ws-pulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(231, 39, 45, 0.4);
  }
  50% {
    box-shadow: 0 8px 28px rgba(231, 39, 45, 0.7);
  }
}

#sticker.ws-scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* —— Demo banner —— */
.ws-demo-banner {
  background: linear-gradient(90deg, #1a1a1a, #3a1515);
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
}
.ws-demo-banner strong {
  color: #ffb4b4;
}
.ws-demo-banner a {
  color: #fff;
  text-decoration: underline;
}

/* —— Order app shell —— */
.ws-order-app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px 80px;
}

.ws-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.ws-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  font-weight: 600;
}
.ws-steps .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: #fff;
}
.ws-steps li.is-active {
  color: #e7272d;
}
.ws-steps li.is-active .dot {
  border-color: #e7272d;
  background: #e7272d;
  color: #fff;
}
.ws-steps li.is-done {
  color: #222;
}
.ws-steps li.is-done .dot {
  border-color: #22c55e;
  background: #22c55e;
  color: #fff;
}

.ws-step-panel h2 {
  font-family: "Oswald", sans-serif;
  margin: 0 0 8px;
  text-align: center;
}
.ws-step-sub {
  text-align: center;
  color: #666;
  margin-bottom: 28px;
}

/* Location / method cards */
.ws-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.ws-pick-card {
  text-align: left;
  background: #fff;
  border: 2px solid #eee;
  padding: 22px 20px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.ws-pick-card:hover {
  border-color: #ccc;
}
.ws-pick-card.is-selected {
  border-color: #e7272d;
  box-shadow: 0 0 0 3px rgba(231, 39, 45, 0.15);
}
.ws-pick-name {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  margin-bottom: 8px;
  color: #111;
}
.ws-pick-meta {
  display: block;
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

.ws-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #e7272d;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
}
.ws-btn:hover {
  background: #c41f24;
  color: #fff;
  text-decoration: none;
}
.ws-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ws-btn-ghost {
  background: transparent;
  color: #222;
  border: 2px solid #ddd;
}
.ws-btn-ghost:hover {
  border-color: #e7272d;
  color: #e7272d;
  background: transparent;
}
.ws-btn-sm {
  padding: 8px 14px;
  font-size: 12px;
}

/* Menu layout */
.ws-order-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .ws-order-layout {
    grid-template-columns: 1fr;
  }
  .ws-cart-panel {
    position: static !important;
  }
  .ws-float-label {
    display: none;
  }
}

.ws-cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  position: sticky;
  top: 70px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 0;
  backdrop-filter: blur(6px);
}
.ws-cat-pill {
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ws-cat-pill.is-active {
  background: #e7272d;
  border-color: #e7272d;
  color: #fff;
}

.ws-menu-section {
  margin-bottom: 28px;
  scroll-margin-top: 120px;
}
.ws-menu-section-title {
  font-family: "Oswald", sans-serif;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.ws-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.ws-food-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 160px;
  transition: box-shadow 0.15s;
}
.ws-food-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.ws-food-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #111;
}
.ws-food-card p {
  margin: 0;
  font-size: 13px;
  color: #666;
  flex: 1;
}
.ws-food-badge {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #fff0f0;
  color: #e7272d;
  padding: 2px 8px;
  margin-bottom: 8px;
  font-weight: 700;
}
.ws-food-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.ws-food-price {
  font-weight: 700;
  color: #e7272d;
  margin-right: auto;
}
.ws-size-select {
  width: 100%;
  border: 1px solid #ddd;
  padding: 6px 8px;
  font-size: 12px;
  margin-bottom: 4px;
}
.ws-add-btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.ws-add-btn.is-added {
  background: #22c55e;
}

/* Cart */
.ws-cart-panel {
  background: #fff;
  border: 1px solid #eee;
  padding: 18px;
  position: sticky;
  top: 90px;
}
.ws-cart-panel h3 {
  margin: 0 0 12px;
  font-family: "Oswald", sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ws-cart-empty {
  color: #888;
  font-size: 14px;
  text-align: center;
  padding: 24px 8px;
}
.ws-cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}
.ws-cart-line-info strong {
  display: block;
  font-size: 13px;
}
.ws-cart-line-info span {
  color: #888;
  font-size: 11px;
}
.ws-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
}
.ws-qty button {
  width: 28px;
  height: 28px;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 14px;
}
.ws-qty span {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}
.ws-cart-line-sum {
  font-weight: 700;
  min-width: 52px;
  text-align: right;
}
.ws-sum-rows {
  margin-top: 12px;
  font-size: 13px;
}
.ws-sum-rows div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #555;
}
.ws-sum-rows .ws-sum-total {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  border-top: 1px solid #eee;
  padding-top: 8px;
  margin-top: 8px;
}
.ws-delivery-min {
  color: #e7272d;
  font-size: 12px;
  margin: 8px 0;
  min-height: 1.2em;
}

/* Mobile cart bar */
.ws-order-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9980;
  background: #111;
  color: #fff;
  padding: 12px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}
.ws-order-cart-bar.is-visible {
  display: flex;
}
@media (min-width: 901px) {
  .ws-order-cart-bar.is-visible {
    display: none;
  }
}

/* Checkout */
.ws-checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}
@media (max-width: 800px) {
  .ws-checkout-grid {
    grid-template-columns: 1fr;
  }
}
.ws-checkout-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 12px 0 6px;
  color: #444;
}
.ws-checkout-form input,
.ws-checkout-form select,
.ws-checkout-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  padding: 12px;
  font-size: 15px;
  border-radius: 0;
}
.ws-checkout-form input:focus,
.ws-checkout-form select:focus,
.ws-checkout-form textarea:focus {
  outline: 2px solid rgba(231, 39, 45, 0.35);
  border-color: #e7272d;
}
.ws-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .ws-field-row {
    grid-template-columns: 1fr;
  }
}

/* Confirm */
.ws-confirm {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px;
}
.ws-confirm-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 16px;
}
.ws-confirm-id {
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
  margin: 8px 0;
}
.ws-confirm-card {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 16px;
  margin: 20px 0;
  text-align: left;
  font-size: 14px;
}
.ws-confirm-card div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

/* Reduced motion */
.ws-reduce-motion *,
.ws-reduce-motion .ws-float-order.has-items {
  animation: none !important;
  scroll-behavior: auto !important;
  transition: none !important;
}

/* Nav readability fix */
.main-menu-area nav > ul > li > a {
  white-space: nowrap;
}
.main-menu-area nav > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 4px;
}

/* Cleaner focus rings */
.ws-page a:focus-visible,
.ws-page button:focus-visible,
.ws-page input:focus-visible,
.ws-page select:focus-visible,
.ws-page textarea:focus-visible {
  outline: 2px solid #e7272d;
  outline-offset: 2px;
}
