:root { --accent: #fcc419; --bg: #0d1117; --card: #161b22; --border: #30363d; }
body { background-color: var(--bg); font-family: 'Plus Jakarta Sans', sans-serif; color: #e6edf3; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
main { padding-bottom: 180px; }
@media (max-width: 600px) {
  main { padding-bottom: 220px; }
}
.no-scrollbar::-webkit-scrollbar { display: none; }

.item-card { background-color: var(--card); border: 1px solid var(--border); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; }
.item-card:hover { border-color: var(--accent); transform: translateY(-2px); }
...item-card:active { transform: scale(0.96); }

.item-card {
  overflow: hidden;
  display: block;
}

.item-card.hidden {
  display: none;
}

.item-card-inner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  min-height: 6rem;
}

.item-card-content {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(100% - 6.5rem);
}

.item-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #9ca3af;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.item-name {
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0;
  color: #ffffff;
}

.item-desc {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #9ca3af;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-price {
  margin-top: 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fcc419;
}

.item-card-image {
  flex: 0 0 5.5rem;
  width: 5.5rem;
  height: 5.5rem;
  align-self: flex-start;
}

.item-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

@media (max-width: 720px) {
  .item-card-image {
    flex: 0 0 4.5rem;
    width: 4.5rem;
    height: 4.5rem;
  }
  .item-card-content {
    max-width: calc(100% - 5.5rem);
  }
  .item-name {
    font-size: 1rem;
  }
  .item-desc {
    font-size: 0.75rem;
  }
  .item-price {
    margin-top: 0.75rem;
    font-size: 1rem;
  }
}


.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(12px); z-index: 100; align-items: flex-end; justify-content: center; }
.modal-content { background: var(--card); width: 100%; max-width: 550px; border-radius: 32px 32px 0 0; border: 1px solid var(--border); max-height: 90vh; overflow-y: auto; animation: slideUp 0.4s ease-out; }

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.category-btn .icon-box { width: 56px; height: 56px; background-color: var(--card); border-radius: 20px; display: flex; align-items: center; justify-content: center; transition: 0.3s; border: 1px solid var(--border); color: #8b949e; }
.category-btn.active .icon-box { background-color: var(--accent); color: #000; border-color: var(--accent); box-shadow: 0 8px 20px rgba(252, 196, 25, 0.2); }
.category-btn.active span { color: var(--accent); font-weight: 700; }

.badge-cart { position: absolute; top: -5px; right: -5px; background: #ff4d4d; color: white; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: bold; border: 2px solid var(--bg); }

.input-premium { background: #0d1117; border: 1px solid #30363d; color: white; border-radius: 16px; width: 100%; padding: 14px; font-size: 14px; outline: none; transition: 0.2s; }
.input-premium:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.sortable-ghost { opacity: 0.3; background: var(--accent) !important; }

.admin-panel-shell {
  background-image: radial-gradient(circle at 10% 10%, rgba(252, 196, 25, 0.06), transparent 40%);
}

.admin-topbar {
  background: linear-gradient(145deg, rgba(22, 27, 34, 0.95), rgba(13, 17, 23, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 16px 18px;
}


.admin-card {
  background: linear-gradient(145deg, rgba(22, 27, 34, 0.96), rgba(13, 17, 23, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
}

/* Painel flutuante Meus Pedidos */
#customer-panel.floating {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  max-width: 370px;
  width: 90vw;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.45);
  background: none;
  padding: 0;
  margin: 0;
  animation: floatUp 0.3s cubic-bezier(0.4,0,0.2,1);
}

@keyframes floatUp {
  from { transform: translateY(60px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 600px) {
  #customer-panel.floating {
    right: 4vw;
    left: 4vw;
    bottom: 16px;
    max-width: 98vw;
    width: 92vw;
  }
}

.admin-btn {
  border: none;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.admin-btn:hover { filter: brightness(1.05); }
.admin-btn:active { transform: translateY(1px); }

.admin-btn-primary { background: #2563eb; color: #fff; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25); }
.admin-btn-accent { background: var(--accent); color: #111; }
.admin-btn-success { background: #16a34a; color: #fff; }
.admin-btn-danger { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.4); }

.admin-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #e6edf3;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-filter-btn.active {
  background: #fff;
  color: #0d1117;
  border-color: #fff;
}

.admin-product-row,
.admin-payment-row {
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
}

.admin-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-topic-chip {
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.admin-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 12px;
}

.admin-icon-btn-edit {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}

.admin-icon-btn-delete {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.admin-tabs-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.modal-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding-top: 18px;
  padding-bottom: 12px;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.01), rgba(13, 17, 23, 1));
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.admin-tab-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e6edf3;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-tab-btn.active {
  background: #fcc419;
  color: #111;
  border-color: #fcc419;
}

.cart-qty-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: transparent;
  color: #e6edf3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.cart-qty-btn:hover {
  background: rgba(252, 196, 25, 0.12);
  color: #fcc419;
}

.admin-section.is-hidden {
  display: none;
}
