.order-main {
  padding-top: 5rem;
  min-height: 100vh;
}

.order-page-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 4vw, 2rem) 1.5rem;
}

.order-page-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.92;
  margin: 0.4rem 0 0.5rem;
}

.order-page-sub {
  color: var(--muted);
  font-weight: 700;
}

.order-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.category-tab {
  padding: 0.5rem 1.1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.category-tab:hover {
  background: rgba(255,122,0,.15);
  color: var(--white);
  border-color: rgba(255,122,0,.4);
}

.order-category {
  margin-bottom: 2.5rem;
}

.order-category-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  color: var(--orange);
  margin-bottom: 0.2rem;
}

.order-category-note {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin-bottom: 0.45rem;
  transition: border-color 0.2s;
}

.order-item:hover {
  border-color: rgba(255,122,0,.35);
}

.order-item-info {
  flex: 1;
}

.order-item-name {
  font-weight: 800;
  font-size: 0.96rem;
}

.order-item-price {
  color: var(--orange);
  font-weight: 900;
  font-size: 0.88rem;
  margin-top: 0.1rem;
}

.order-item-controls {
  flex-shrink: 0;
}

.add-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  color: var(--black);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  transition: transform 0.15s;
}

.add-btn:hover {
  transform: scale(1.1);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
}

.qty-display {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 900;
  font-size: 0.95rem;
}

.order-cart {
  position: sticky;
  top: 6rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  overflow: hidden;
}

.cart-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  padding: 1.1rem 1.3rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.cart-body {
  min-height: 160px;
  max-height: 45vh;
  overflow-y: auto;
  padding: 0.75rem 1.3rem;
}

.cart-empty-msg {
  color: var(--muted);
  text-align: center;
  padding: 2rem 0;
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-line-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.cart-line-name {
  flex: 1;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.3;
}

.cart-line-qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-line-price {
  color: var(--orange);
  font-weight: 900;
  font-size: 0.88rem;
  min-width: 3.2rem;
  text-align: right;
}

.cart-footer {
  padding: 1rem 1.3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1rem;
}

.cart-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.cart-footer .btn {
  width: 100%;
}

.cart-fab {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--black);
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.75rem;
  font-weight: 900;
  font-size: 1rem;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255,122,0,.45);
  z-index: 40;
  white-space: nowrap;
  display: none;
}

.checkout-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.checkout-backdrop[hidden] { display: none; }

.checkout-modal {
  position: relative;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
}

.checkout-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.4rem;
  margin-bottom: 1.25rem;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkout-form input,
.checkout-form select {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  width: 100%;
  outline: none;
}

.checkout-form input:focus,
.checkout-form select:focus {
  border-color: var(--orange);
}

.checkout-form input::placeholder {
  color: var(--muted);
}

.checkout-form select option {
  background: var(--charcoal);
  color: var(--white);
}

.checkout-form .btn {
  margin-top: 0.5rem;
  width: 100%;
}

.success-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.success-backdrop[hidden] { display: none; }

.success-modal {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: var(--orange);
  color: var(--black);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-heading {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.6rem;
  line-height: 1;
}

.order-id-display {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: var(--orange);
  background: rgba(255,122,0,.1);
  border: 1px solid rgba(255,122,0,.3);
  border-radius: 0.75rem;
  padding: 0.45rem 1.1rem;
}

.success-sub {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.success-sub a {
  color: var(--orange);
}

.success-modal .btn {
  width: 100%;
  margin-top: 0.5rem;
}

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

  .order-cart {
    display: none;
  }

  .cart-fab {
    display: block;
  }
}
