/* =========================================================
   SELERA RASA — tema hangat, editorial, dan responsif
   Ubah variabel warna di :root untuk mengganti palet.
   ========================================================= */
:root {
  --green: #214b35;
  --green-dark: #163a2a;
  --green-soft: #e9eee4;
  --orange: #c87528;
  --cream: #f8f3e9;
  --paper: #fffdf8;
  --line: #e8ddc9;
  --ink: #292b24;
  --muted: #777568;
  --shadow: 0 12px 32px rgba(48, 54, 36, 0.09);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.55;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}
h1,
h2,
h3 {
  margin: 0;
}
h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.19em;
}
.eyebrow.dark {
  color: var(--orange);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #6e2a10 0%, #b04e1e 100%);
  color: #fff;
  overflow: hidden;
}
.hero-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}
.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffc857;
}
.top-link {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  padding: 9px 16px;
  font-size: 0.8rem;
  font-weight: 700;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 20px 0 56px;
}
.hero .eyebrow {
  display: inline-block;
  background: #ffc857;
  color: #2a1a00;
  padding: 8px 14px;
  border-radius: 999px;
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hero h1 em {
  color: #ffc857;
  font-style: normal;
}
.hero-tag {
  margin: 16px 0 4px;
  color: #ffe2a0;
  font-weight: 700;
}
.hero-desc {
  max-width: 480px;
  margin: 4px 0 22px;
  color: rgba(255, 255, 255, 0.85);
}
.btn-outline {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}
.hero-meta span {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}
.hero-meta b {
  font-weight: 600;
}

/* Slider foto */
.hero-food {
  position: relative;
  height: 440px;
  display: grid;
  place-items: center;
}
.hero-food::before {
  content: "";
  position: absolute;
  width: min(380px, 92%);
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  background: #ffc857;
  transform: translate(16px, 16px) rotate(-5deg) scale(1.06);
}
.slider {
  position: relative;
  width: min(380px, 92%);
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  border: 6px solid #fff;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}
.track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}
.track img {
  flex: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-kosong {
  flex: none;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 6rem;
}

.sticker {
  position: absolute;
  background: #fff;
  color: #2a1a00;
  border-radius: 16px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}
.s1 {
  left: 0;
  top: 24px;
  transform: rotate(-5deg);
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
}
.s2 {
  right: 0;
  top: 55%;
}

.hero-strip {
  background: #ffc857;
  color: #2a1a00;
  text-align: center;
  padding: 18px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-food {
    height: 360px;
  }
}
.food-emoji {
  width: min(330px, 80%);
  aspect-ratio: 1.22;
  display: grid;
  place-items: center;
  border-radius: 46% 54% 42% 58% / 53% 40% 60% 47%;
  background: linear-gradient(145deg, #f4e3c3, #d4a66b);
  box-shadow:
    0 25px 55px rgba(0, 0, 0, 0.22),
    inset 0 0 0 12px rgba(255, 255, 255, 0.22);
  font-size: clamp(7rem, 15vw, 12rem);
  transform: rotate(-7deg);
}
.food-note {
  position: absolute;
  top: 16%;
  left: -2%;
  z-index: 2;
  color: #f6e7c9;
  font-family: "Playfair Display", serif;
  font-style: italic;
  transform: rotate(-8deg);
}
.food-caption {
  position: absolute;
  bottom: 13%;
  right: 2%;
  color: #f4e4c5;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
}

/* Main layout */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 34px;
  align-items: start;
  padding-top: 42px;
  padding-bottom: 55px;
}
.section-intro h2 {
  color: var(--green);
  font-size: 2.15rem;
}
.section-intro > p:last-child {
  color: var(--muted);
  margin: 5px 0 18px;
}
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}
.category {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 30px;
  padding: 9px 17px;
  font-weight: 700;
  font-size: 0.82rem;
}
.category.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.product-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(115, 92, 53, 0.12);
  border-radius: 17px;
  box-shadow: var(--shadow);
}
.product-visual {
  min-height: 145px;
  display: grid;
  place-items: center;
  font-size: 5rem;
  background: linear-gradient(140deg, #f1e5ce, #e4d2ad);
}
.product-card:nth-child(3n + 2) .product-visual {
  background: linear-gradient(140deg, #eee2d2, #d7c2a1);
}
.product-card:nth-child(3n) .product-visual {
  background: linear-gradient(140deg, #e9e8d3, #d5d5ad);
}
.product-info {
  padding: 14px;
}
.product-category {
  color: var(--orange);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  text-transform: uppercase;
}
.product-info h3 {
  margin: 4px 0;
  color: var(--green-dark);
  font-size: 0.98rem;
}
.product-info p {
  min-height: 38px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
}
.price {
  display: block;
  margin-bottom: 11px;
  color: var(--orange);
  font-size: 1.02rem;
}
.add-button,
.order-button,
.complete-button {
  border: 0;
  border-radius: 9px;
  background: var(--green);
  color: white;
  font-weight: 800;
}
.add-button {
  width: 100%;
  padding: 10px 8px;
  font-size: 0.78rem;
}
.add-button:hover,
.order-button:hover,
.complete-button:hover {
  background: var(--green-dark);
}

/* Cart */
.cart-card {
  position: sticky;
  top: 18px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.cart-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 20px;
  background: #edf0e5;
}
.cart-heading h2 {
  color: var(--green);
  font-size: 1.55rem;
}
.cart-heading .eyebrow {
  margin-bottom: 2px;
}
.cart-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 1.2rem;
}
#formPesanan {
  padding: 18px 20px 20px;
}
#formPesanan label {
  display: block;
  margin: 12px 0 5px;
  font-size: 0.78rem;
  font-weight: 800;
}
#formPesanan input,
#formPesanan textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
  color: var(--ink);
  background: #fffefa;
  font-size: 0.84rem;
  resize: vertical;
}
#formPesanan input:focus,
#formPesanan textarea:focus {
  border-color: #8b9d77;
  box-shadow: 0 0 0 3px rgba(33, 75, 53, 0.08);
}
#formPesanan input::placeholder,
#formPesanan textarea::placeholder {
  color: #aaa596;
}
.field-hint {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.69rem;
}
.cart-list {
  margin-top: 17px;
}
.empty-cart {
  padding: 12px;
  border-radius: 10px;
  background: #f0f1e7;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.cart-item-detail {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.cart-item-detail strong {
  font-size: 0.78rem;
}
.cart-item-detail small {
  color: var(--muted);
  font-size: 0.72rem;
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quantity-control button {
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f2e8;
  color: var(--green);
  font-weight: 800;
}
.quantity-control span {
  min-width: 12px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  margin: 17px 0 12px;
  font-weight: 800;
  font-size: 0.9rem;
}
.cart-total strong {
  color: var(--orange);
  font-size: 1.1rem;
}
.order-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  font-size: 0.9rem;
}
.order-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.secure-note {
  margin: 9px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.68rem;
}
.success-message,
.error-message {
  margin: 12px 0 0;
  padding: 10px;
  border-radius: 9px;
  font-size: 0.78rem;
}
.success-message {
  background: #e9f4e8;
  color: #245c34;
}
.error-message {
  background: #fff0e9;
  color: #a13e22;
}
[hidden] {
  display: none !important;
}

/* Promises and footer */
.promise-strip {
  background: var(--green);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.promise-grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.promise-grid > div > span {
  color: white;
  font-size: 1.8rem;
}
.promise-grid p {
  display: grid;
  margin: 0;
}
.promise-grid strong {
  font-size: 0.82rem;
}
.promise-grid small {
  color: white;
  font-size: 0.7rem;
}
footer {
  padding: 20px;
  text-align: center;
  color: black;
  background: #ffc857;
  font-size: 0.78rem;
}

/* Cashier */
.cashier-hero {
  color: white;
  background: linear-gradient(110deg, var(--green-dark), #315c40);
}
.cashier-hero-inner {
  position: relative;
  padding-top: 80px;
  padding-bottom: 38px;
}
.cashier-hero h1 {
  font-size: 2.8rem;
}
.cashier-hero p:last-child {
  color: rgba(255, 255, 255, 0.78);
  margin: 7px 0 0;
}
.cashier-main {
  min-height: 65vh;
  padding-top: 38px;
  padding-bottom: 55px;
}
.cashier-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  margin-bottom: 20px;
}
.cashier-title h2 {
  color: var(--green);
  font-size: 2rem;
}
.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 29px;
  height: 29px;
  padding: 0 8px;
  border-radius: 30px;
  color: white;
  background: var(--orange);
  font:
    700 0.85rem "DM Sans",
    sans-serif;
  vertical-align: middle;
}
.live-label {
  color: var(--muted);
  font-size: 0.75rem;
}
.live-label i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: #4b9b5c;
}
.orders-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.order-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.order-card.completed {
  opacity: 0.68;
  border-left-color: #8a9a7b;
}
.order-header,
.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.order-identity h3 {
  color: var(--green);
  font-size: 1.05rem;
}
.order-time {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}
.status-pill {
  padding: 5px 9px;
  border-radius: 30px;
  background: #fff0dc;
  color: #995819;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}
.status-pill.done {
  background: #e9f1e6;
  color: #416c42;
}
.delivery-info {
  display: grid;
  gap: 6px;
  margin: 15px 0;
  padding: 12px;
  border-radius: 10px;
  background: #f5f2e9;
}
.delivery-info p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}
.order-note {
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: italic;
}
.order-items {
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: 9px 0;
}
.order-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 0.78rem;
}
.order-footer {
  margin-top: 13px;
}
.order-total {
  color: var(--orange);
  font-size: 0.92rem;
}
.complete-button {
  padding: 9px 12px;
  font-size: 0.75rem;
}
.empty-orders {
  grid-column: 1 / -1;
  padding: 35px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 253, 248, 0.6);
}

/* Responsive */
@media (max-width: 950px) {
  .main-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
  }
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-food {
    right: -2%;
    width: 38%;
  }
}
@media (max-width: 720px) {
  .wrap {
    width: min(100% - 32px, 560px);
  }
  .hero-inner {
    min-height: 0;
  }
  .hero-copy {
    width: 100%;
    padding: 82px 0 28px;
  }
  .hero h1 {
    max-width: 420px;
    font-size: 3rem;
  }
  .hero-desc {
    max-width: 360px;
  }
  .hero-food {
    display: none;
  }
  .top-link {
    top: 18px;
  }
  .main-layout {
    display: flex;
    flex-direction: column;
    padding-top: 30px;
  }
  .catalog,
  .cart-card {
    width: 100%;
  }
  .cart-card {
    position: static;
    order: -1;
  }
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .promise-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .promise-grid > div {
    justify-content: flex-start;
  }
  .orders-list {
    grid-template-columns: 1fr;
  }
  .cashier-title {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 420px) {
  .menu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .product-visual {
    min-height: 110px;
    font-size: 3.7rem;
  }
  .product-info {
    padding: 11px;
  }
  .product-info h3 {
    font-size: 0.87rem;
  }
  .product-info p {
    font-size: 0.72rem;
  }
  .add-button {
    font-size: 0.7rem;
  }
  .hero h1 {
    font-size: 2.55rem;
  }
  .hero-meta {
    display: grid;
  }
}

/* Penyesuaian katalog dan alur pesanan Selera Rasa */
.form-section-title {
  margin: 20px 0 2px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
}
.minimum-note {
  display: inline-block;
  margin: 0 0 7px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #f1eee3;
  color: #68634f;
  font-size: 0.66rem;
  font-weight: 700;
}
.product-info p {
  min-height: 56px;
}
.quantity-control button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}
.remove-item {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border: 0;
  border-radius: 50%;
  background: #f7e9e1;
  color: #9a4c35;
  font-size: 1rem;
  line-height: 1;
}
.delivery-info p {
  line-height: 1.5;
}
@media (max-width: 420px) {
  .cart-item {
    align-items: flex-start;
  }
  .quantity-control {
    gap: 5px;
  }
}

/* Membuat semua kartu menu sejajar */
.menu-grid {
  display: grid;
  align-items: stretch;
}

.menu-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.menu-card .price {
  margin-top: auto;
}

.menu-card button {
  margin-top: 16px;
}

/* Merapikan tinggi dan posisi isi kartu menu */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-visual {
  flex-shrink: 0;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info p {
  min-height: 56px;
}

.product-info .price {
  margin-top: auto;
  margin-bottom: 11px;
}

.product-info .add-button {
  width: 100%;
  margin-top: 0;
}

/* Peringatan kolom wajib */
.field-error {
  display: block;
  margin: 5px 0 0;
  color: #c0392b;
  font-size: 0.72rem;
  font-weight: 600;
}

#formPesanan .input-error {
  border-color: #c0392b;
  background: #fff8f6;
}

.required-mark {
  color: #c0392b;
}

.product-visual {
  overflow: hidden;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
