:root {
  --primary: #4e73df;
  --primary-hover: #9eb7ff;
  --bg: #f7f7f7;
  --text: #333;
  --grey: #aaa;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  display: flex;
  justify-content: center;
}

.hidden{
	display: none;
}

.line-strip {
  border-top:1px dashed #ddd;
  margin-top:10px;
  padding-top:10px;
}

.carousel {
  height: 280px !important;
}

.carousel-inner,
.carousel-inner .item,
.carousel-inner img {
  height: 100% !important;
}

.carousel-inner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Container mobile */
.app {
  width: 100%;
  max-width: 420px;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-content {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  margin-bottom: 100px;
}

/* Container icon */
.header-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;

  display: flex;
  gap: 10px;
}

/* Button icon */
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;

  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 18px;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Header */
.header {
  position: relative;
}

.header img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.store-info {
  padding: 16px;
}

.store-name {
  font-weight: 700;
  font-size: 18px;
}

.store-time {
  font-size: 14px;
  color: #777;
  margin-top: 4px;
}

/* Sticky container */
.sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
}

.table-number {
  background: #fff3e8;
  margin: 16px 16px;
  padding: 12px;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  position: relative;
  z-index: 21;
}

/* Tabs */
.tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid #eee;
  margin-top: 12px;
  background: #fff;
  position: relative;
  z-index: 20;

  /* Firefox */
  scrollbar-width: none;

  /* IE & Edge lama */
  -ms-overflow-style: none;
}

/* Chrome, Safari, Edge */
.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 14px 16px;
  white-space: nowrap;
  font-weight: 600;
  color: #777;
  cursor: pointer;
}

.tab.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

/* Product list */
.section {
  padding: 16px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  cursor: pointer;
}

.product img,
.product_detail {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}


/* === OUTLINE CART BUTTON === */
.product.no-cart {
  position: relative;
}

.product.no-cart .product-action {
  position: absolute;
  right: 10px;
  bottom: 10px;
  margin: 0;
}

.btn-cart-outline {
  width: 35px !important;
  height: 35px;
  border-radius: 50%;
  padding: 0;

  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);

  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: all .2s ease;
}

.btn-cart-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-cart-outline:active {
  transform: scale(.92);
}

/* === NORMAL MODE (QTY) === */
.product.has-cart .product-action {
  position: static;
  margin-top: 10px;
}


.product-body {
  padding: 10px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
}

.product-price {
  font-size: 13px;
  color: var(--text);
  margin-top: 6px;
}

.product-action {
  margin-top: 10px;
}

.product-action .btn-add {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 8px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.product-action .btn-add:hover{
	background: var(--primary-hover);
}

.product-action .qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-action .qty button {
  width: 32px;
  height: 32px;
}

/* Floating cart */
.cart {
  position: fixed;
  bottom: 20px;
  width: 100%;
  max-width: 420px;
  padding: 0 16px;
}

.cart button {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.cart button:hover{
	background: var(--primary-hover);
}

.cart-wrap button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* GROUP KIRI */
.cart-left-group {
  display: flex;
  align-items: center;
  gap: 12px; /* atur jarak icon & total di sini */
}

.cart-left {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cart-left small {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 3px;
}

.cart-left strong {
  font-size: 18px;
}

.cart-right {
  font-size: 16px;
}

.cart-icon {
  position: relative;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--primary);

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;

  background: #fff;
  color: #ff4fa3;
  font-size: 15px;
  font-weight: bold;

  width: 22px;
  height: 22px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.menu {
  border: 1px solid #eee;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-weight: bold;
}

.btn-add {
  background: #ff3d8b;
  color: white;
}

.btn-plus,
.btn-minus {
  width: 25px;
}

.btn-plus {
  /*width: 100%;*/
  border-radius: 10px;
  border: none;
  font-weight: bold;
	background: var(--primary);
	color: var(--bg);
}

.btn-plus:hover{
	background: var(--primary-hover);
}

.btn-minus {
  /*width: 100%;*/
  border-radius: 10px;
  border: none;
  font-weight: bold;
	background: var(--primary);
	color: var(--bg);
}

.btn-minus:hover{
	background: var(--primary-hover);
}

.qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty button {
  width: 36px;
  height: 36px;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal.hidden {
  display: none;
}

/* Wrapper */
.modal-sheet {
  background: white;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.25,.8,.25,1);
  margin: 0 auto;
}

.modal.show .modal-sheet {
  transform: translateY(0);
}

.modal-image {
  position: relative;
}

.modal-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.image-preview {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
}

.image-preview img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* HEADER */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-header p {
  margin: 4px 0 0;
  color: #777;
  font-size: 14px;
}

/* CLOSE BUTTON */
.modal-close {
  min-width: 36px;
  min-height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px var(--bg);
  color: var(--text);
  font-size: 25px;
  cursor: pointer;
}

/*.modal-close {
	background: #fff;
	color: var(--text);
	font-size: 25px;
	cursor: pointer;
	border: 0;
}*/

/* INFO */
.modal-info {
  padding: 16px;
}

.modal-info h3 {
  margin: 0;
  font-size: 20px;
}

.modal-info p {
  margin: 6px 0;
  font-weight: bold;
}

.modal-desc {
  color: #777;
  font-size: 13px;
  line-height: 1.4;
}


/* BODY */
.modal-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.option-group h4 {
  margin-bottom: 12px;
}

.option-group h4 span {
  font-size: 12px;
  color: #ff7a00;
  font-weight: normal;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.option-item input {
  accent-color: #ff3d8b;
}

.note-group {
  margin-top: 16px;
}

.note-group textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  resize: none;
}

/* FOOTER */
.modal-footer {
  padding: 16px;
  border-top: 1px solid #eee;
}

.qty-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.qty-label {
  font-weight: 600;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 1rem;

}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: #fff;
  font-size: 20px;
  cursor: pointer;
}

.qty-btn:active {
  transform: scale(.95);
}

.qty-btn:hover {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.btn-primary:hover{
	background: var(--primary-hover);
}

.hidden {
  display: none;
}

.modal-sheet-option {
  position: absolute;
  bottom: 0;
  height: 60vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp .25s ease-out;
  max-width: 420px;
  width: 100%;
}

.modal-footer-option {
	padding: 16px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.option-item-other {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.option-label {
  font-weight: 600;
}

.option-price {
  color: #777;
  font-size: 14px;
}

.option-qty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swal-wide {
  max-width: 420px;
}

.product-action .qty,
.qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-action .qty button,
.qty-control .qty-btn {
  width: 25px !important;
  height: 25px !important;
  min-width: 25px;
  min-height: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  /*border-radius: 50%;*/
}

.product-action .qty i,
.qty-control i {
  font-size: 14px;
  line-height: 1;
}

.btn-full-width{
  background:var(--primary);
  border:none;
  color:#fff;
  padding:12px 16px;
  border-radius:10px;
  font-weight:600;
  width: 100%;
}

.btn-full-width:hover {
  background: var(--primary-hover);
}

@media (max-width: 480px) {
  .modal-sheet {
    border-radius: 14px;
    height: 90vh;
  }
}