

.fooda-float-nav {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}
.fooda-float-toggle {
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.fooda-float-menu {
  display: none;
  flex-direction: column;
  margin-top: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  overflow: hidden;
}
.fooda-float-menu.open { display: flex; }
.fooda-float-menu a {
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
}
.fooda-float-menu a:last-child { border-bottom: none; }
.fooda-float-menu a:hover { background: #f5f5f5; }

.fooda-float-toggle {
  background: #f00;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;      /* sedikit lebih besar */
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);

  /* ini yang bikin ikon benar-benar center */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1; /* buang extra space font */
  padding: 0;
}








/* === Drawer Cart Panel === */
.restora-cart {
  position: fixed !important;
  top: 0 !important;
  right: -350px !important; /* posisi awal tersembunyi */
  width: 320px;
  height: 100% !important;
  background: #fff;
  box-shadow: -2px 0 6px rgba(0,0,0,0.2);
  transition: right .3s ease;
  z-index: 999999 !important;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.restora-cart.open {
  right: 0 !important; /* saat terbuka */
}

/* === Header Cart === */
.restora-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  font-weight: 700;
  border-bottom: 1px solid #eee;
}

/* tombol close (X) */
.restora-cart-header .restora-remove {
  background: #f00;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* === Items === */
.restora-cart-items {
  flex: 1;
  padding: 12px;
}
.restora-cart-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.restora-cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}
.restora-cart-item .restora-mini {
  font-size: 12px;
  color: #666;
}
.restora-cart-item .restora-row {
  display: flex;
  align-items: center;
  margin-top: 4px;
}
.restora-cart-item input.restora-qty {
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
}

/* tombol hapus item */
.restora-cart-item .restora-remove {
  background: #f44336;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 6px;
  margin-left: 8px;
  cursor: pointer;
  font-size: 12px;
}

/* === Footer === */
.restora-cart-footer {
  padding: 12px;
  border-top: 1px solid #eee;
}
.restora-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 12px;
}
.restora-checkout {
  width: 100%;
  background: #25D366; /* hijau WA */
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
.restora-checkout:hover {
  background: #20b558;
}

/* === Floating Icon / Toggle === */
.restora-cart-toggle {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 999998 !important;
  background: #f00 !important; /* merah biar sama seperti #fooda-cart-icon lama */
  padding: 11px 16px;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}
.restora-cart-toggle:hover {
  background: #d00 !important;
}

```css
/* ================== GRID FRONTEND ================== */
.fooda-grid {
  display: grid;
  gap: 20px;
}

/* Variasi kolom */
.fooda-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.fooda-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.fooda-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Tablet */
@media (max-width: 1024px) {
  .fooda-grid.cols-3,
  .fooda-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 600px) {
  .fooda-grid.cols-2,
  .fooda-grid.cols-3,
  .fooda-grid.cols-4 { grid-template-columns: 1fr; }
}

/* Frontend card */
.fooda-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  padding: 16px;
  text-align: center;
  box-sizing: border-box;
}
.fooda-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.fooda-item h4 {
  font-size: 1.1em;
  margin: 10px 0 6px;
}
.fooda-item p {
  font-size: 0.95em;
  color: #555;
}
/* font mobile lebih kecil */
@media (max-width: 600px) {
  .fooda-item p { font-size: 0.75em; }
}

/* ================== GRID ADMIN ================== */
.fooda-admin .fooda-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Admin responsive */
@media (max-width: 768px) {
  .fooda-admin .fooda-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .fooda-admin .fooda-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }
}

/* Admin card */
.fooda-admin .fooda-item {
  background: #f9f9f9;
  border: 1px dashed #bbb;
  padding: 12px;
  text-align: left;
}
```



/* ========================
   GLOBAL WRAPPER
======================== */
.fooda-wrapper {
  padding: 4px;
  font-family: Arial, sans-serif;
}

/* ========================
   HEADER & FOOTER
======================== */



/* Header & Footer alignment fix */
.fooda-header.center,
.fooda-footer.center {
  text-align: center;
}

/* Logo max width default (desktop) */
.fooda-header-logo,
.fooda-footer-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  padding-top: 50px;
  padding-bottom: 50px;
}

/* Footer text center */
.fooda-footer-text {
  text-align: center;
  margin-top: 10px;
  font-size: 14px; padding-bottom: 55px; margin-bottom: -22px;
}

/* Responsive: logo lebih kecil di mobile */
@media (max-width: 600px) {
  .fooda-header-logo,
  .fooda-footer-logo {
    max-width: 150px;
  }
}






/* ========================
   SECTIONS FRONTEND
======================== */
.fooda-section {
  margin-bottom: 10px;
}

.fooda-section-title {
  font-size: 1.5em;
  margin-bottom: 0px;
  border-bottom: 0px solid #ddd;
  padding-bottom: 0px; text-align: center;
}

/* ========================
   GRID LAYOUT (ADMIN + FRONT)
======================== */
.fooda-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media(max-width: 1024px){
  .fooda-grid { grid-template-columns: repeat(2, 1fr); }
}


@media (max-width: 600px) {
  .fooda-grid {
    gap: 10px; /* lebih rapat di mobile */
  }
}




.fooda-btn.restora-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 33px;
  font-weight: bold;
}

fooda-btn.restora-add {
  padding-top: 8px;
  color: #fff;
  font-size: 42px;
  padding-bottom: 8px;
}

.fooda-btn.restora-add:hover {
  background: #218838;
}










/* ========================
   ITEM / CARD FRONTEND
======================== */
.fooda-item {
  border: 1px solid #ddd;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  transition: box-shadow .3s ease;
}

.fooda-item:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.fooda-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 4px;
}

.fooda-item h3 {
  margin: 10px 0 10px;
  font-size: 24px;
  line-height: 20px;
  color: #014394;
}

/* Mobile (<=600px) lebih kecil */
@media (max-width: 600px) {
 .fooda-item h3 {
  margin: 10px 0 10px;
  font-size: 24px;
  line-height: 20px;
  color: #014394; 
 
}
}



.fooda-item p {
  font-size: 0.95em;
  color: #555;
}

/* Mobile (<=600px) lebih kecil */
@media (max-width: 600px) {
  .fooda-item p {
    font-size: 0.75em;
  }
}

.fooda-price {
  font-weight: bold;
  color: #e67e22;
  margin: 8px 0;
}

.fooda-btn {
  display: inline-block;
  padding: 4px 14px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background .3s ease; margin: 8px;
}
.fooda-btn:hover {
  background: #218838;
}

/* ========================
   ADMIN BUILDER STYLING
======================== */
.fooda-admin input[type="text"],
.fooda-admin select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.fooda-section-admin {
  border: 0px solid #006400;
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 8px;
  background: #fff;
}

.fooda-section-admin h3 {
  background: #006400;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  margin-top: 0;
}

.fooda-section-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.fooda-col {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  position: relative;
}

/* Preview image in admin */
.fooda-img-wrap img.fooda-preview {
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 6px;
}

/* Tombol remove item */
.fooda-remove-item-btn {
  background: #ff6c00  !important;
  color: #fff !important;
  border: none;
  border-radius: 4px;
}
.fooda-remove-item-btn:hover {
  background: #a00 !important;
}



.fooda-section-admin h3,
.fooda-col h4 {
  cursor: move;
}

.fooda-section-placeholder {
  border: 2px dashed #666;
  height: 50px;
  margin: 10px 0;
  background: #fafafa;
}

.fooda-item-placeholder {
  border: 2px dashed #999;
  background: #f0f0f0;
  height: 80px;
  border-radius: 6px;
}


.fooda-section-content {
  padding: 10px;
  border-top: 1px solid #ddd;
}

.fooda-section-collapsed .fooda-section-content {
  display: none;
}

.fooda-toggle-section {
  float: right;
  font-size: 14px;
  cursor: pointer;
}



.fooda-variants {
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 6px;
}
.fooda-variant-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.fooda-variant-row input {
  flex: 1;
}






/* Responsive untuk builder admin */
@media (max-width: 768px) {
  .fooda-admin .fooda-grid {
    grid-template-columns: 1fr !important; /* semua item full width */
    gap: 12px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .fooda-admin .fooda-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* tablet: 2 kolom */
    gap: 15px;
  }
}












/* === OWNER LOGIN PAGE === */
.fooda-owner-login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: var(--fooda-bg, #014394);
}
.fooda-owner-login form {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 320px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.fooda-owner-login input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.fooda-owner-login button {
  background: #014394;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}
.fooda-owner-login button:hover {
  background: #01326f;
}



.wrap {
    margin: 10px 20px 10px 20px !important; 
} 







/* ===================================
   ADMIN BUILDER LAYOUT FIX
   =================================== */

/* Batasi lebar container builder */
.fooda-admin {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Setiap section builder */
.fooda-section-admin {
  background: #fff;
  border: 0px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 25px;
  box-sizing: border-box;
  overflow: hidden; /* cegah item keluar */
}

/* Header section */
.fooda-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 15px;
  border-radius: 6px;
}

/* Konten section */
.fooda-section-content {
  padding: 15px 10px;
}

/* GRID ITEM FIX */
.fooda-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 15px;
  width: 100%;
  box-sizing: border-box;
 padding: 0px 20px 20px 20px;
}

/* Auto grid sesuai kolom */
.fooda-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.fooda-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.fooda-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }

/* Item card */
.fooda-col {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s ease;
}

.fooda-col:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Responsif */
@media (max-width: 1024px) {
  .fooda-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .fooda-grid { grid-template-columns: repeat(1, 1fr); }
}

/* Gambar item */
.fooda-img-wrap {
  text-align: center;
  margin-bottom: 10px;
}
.fooda-img-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Varian produk */
.fooda-variants {
  margin-top: 8px;
  background: #f8f8f8;
  padding: 8px;
  border-radius: 6px;
  border: 1px dashed #ccc;
}
.fooda-variant-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 5px;
}
.fooda-variant-row input {
  flex: 1;
  min-width: 0;
}








/* ===================================
   FIXED ADMIN BUILDER GRID LAYOUT
   =================================== */

.fooda-admin .fooda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  align-items: start;
}

.fooda-admin .fooda-col {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease;
}

.fooda-admin .fooda-col:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Responsive behavior */
@media (max-width: 1024px) {
  .fooda-admin .fooda-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}
@media (max-width: 640px) {
  .fooda-admin .fooda-grid {
    grid-template-columns: 1fr;
  }
}

/* Ensure images inside columns scale nicely */
.fooda-admin .fooda-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}



.fooda-grid {
  display: grid;
  width: 100%;
  gap: 20px;
  box-sizing: border-box;
}

.fooda-grid[data-columns="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fooda-grid[data-columns="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fooda-grid[data-columns="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Aman di layar kecil */
@media (max-width: 768px) {
  .fooda-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  }
}

#post-body.columns-2 #postbox-container-1 {
  float: right;
  margin-right: -300px;
  width: 0px !important;
}

/* === SHOW SELECT DROPDOWN VARIANT === */
.fooda-variant-wrapper select.fooda-variants-select {
  display: block !important;
  position: static !important;
  width: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin-top: 8px !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
  background: #fff !important;
  font-size: 14px !important;
}


/* === FIX untuk versi security baru: pastikan varian select selalu tampil === */
.fooda-variant-wrapper .fooda-variants-select {
  display: block !important;
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100% !important;
  height: auto !important;
  z-index: auto !important;
}


/* ketika toggle aktif, tampilkan select dengan override penuh */
.fooda-variant-wrapper .fooda-variants-select.show,
.fooda-variant-wrapper .fooda-variants-select[style*="display: block"] {
  display: block !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 9999 !important;
}

/* styling tombol toggle (opsional, tetap kecil) */
.fooda-toggle {
  cursor: pointer;
  user-select: none;
}
.fooda-toggle.active {
  background: #ff7043;
  color: #fff;
  border-color: #ff7043;
}



/* =======================================================
   Modern Select Style (tanpa ubah fungsi bawaan)
   ======================================================= */

/* Wrapper umum */
.fooda-variant-wrapper {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 8px;
}

/* Select bawaan browser tapi diberi style modern */
.fooda-variants-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 40px 10px 12px;
  font-size: 14px;
  width: 100%;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


.fooda-variants-select:hover {
  border-color: #bbb;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.fooda-variants-select:focus {
  outline: none;
  border-color: #ff7043;
  box-shadow: 0 0 0 2px rgba(255,112,67,0.25);
}

/* Custom arrow (gantikan panah bawaan browser) */
.fooda-variant-wrapper::after {
  content: "▼";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #777;
  pointer-events: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.fooda-variants-select:focus + .fooda-variant-wrapper::after,
.fooda-variant-wrapper:focus-within::after {
  color: #ff7043;
  transform: translateY(-50%) rotate(180deg);
}

/* Placeholder style */
.fooda-variants-select option[data-placeholder="1"] {
  color: #999;
}

/* Responsif */
@media (max-width: 600px) {
  .fooda-variants-select {
    font-size: 15px;
    padding: 12px 38px 12px 14px;
  }
}



/* === Layout responsive untuk meta section === */
.fooda-section-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  align-items: end;
  margin-bottom: 15px;
}

/* Label dan input rapi */
.fooda-section-meta label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.fooda-section-meta input,
.fooda-section-meta select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 6px 8px;
}

/* === Responsif untuk layar kecil === */
@media (max-width: 768px) {
  .fooda-section-meta {
    grid-template-columns: 1fr;
  }
}

.fooda-section-content {
  background: #a3f49c;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 20px;
}



/* === SOLD === */

.fooda-btn.sold-out {
  background: #c00 !important;
  color: #fff !important;
  cursor: not-allowed;
  opacity: 0.8;
  transform: rotate(45deg); /* miringkan jadi seperti X */
}
.fooda-btn.sold-out:hover {
  opacity: 0.9;
}


.fooda-minorder {
  font-size: 13px;
  color: #777;
  margin-top: 3px;
}


.fooda-desc {
  white-space: pre-line !important;
  line-height: 1.6; margin-top: -18px;
}


.fooda-hero {
  position: relative;
  display: flex;
  justify-content: center;   /* rata tengah horizontal */
  align-items: center;       /* rata tengah vertikal */
  overflow: hidden;
  text-align: center;
  width: 100%;
}

.fooda-hero-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;            /* pastikan tetap di tengah */
  object-fit: cover;         /* biar proporsional */
}

.fooda-hero-text {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  padding: 1rem 2rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* tengah persis */
}








.fooda-toggle-grid {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 10px;
  color: #333;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}
.fooda-toggle-grid:hover {
  background: #f3f3f3;
  color: #0073aa;
}














