/* Root variables for consistency */
:root {
  --rbm-green: #2e7d32;
  --rbm-green-light: #4caf50;
  --rbm-bg: #f8faf8;
  --rbm-white: #ffffff;
  --rbm-text-dark: #1b2d1f;
  --rbm-text-light: #6a7d6f;
  --rbm-radius-lg: 20px;
  --rbm-radius-md: 14px;
  --rbm-radius-sm: 10px;
}

/* Section wrapper */
.rbm-menu-section {
  height: 100vh; /* full section */
  max-width: 1240px;
  margin: 2.5vh auto; /* top and bottom breathing space */
  border-radius: var(--rbm-radius-lg);
  display: flex;
  flex-direction: column;
  background: var(--rbm-bg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Header */
.rbm-header {
  background: linear-gradient(
    90deg,
    var(--rbm-green) 0%,
    var(--rbm-green-light) 100%
  );
  padding: 32px 36px;
  color: var(--rbm-white);
}
.rbm-title h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.rbm-sub {
  margin: 10px 0 0;
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.95;
}

/* Main area */
.rbm-main {
  display: flex;
  flex: 1 1 auto;
  overflow: hidden;
  height: 95vh; /* main body height */
}

/* Left Nav */
.rbm-nav {
  width: 260px;
  flex: 0 0 260px;
  background: var(--rbm-white);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  padding: 24px 18px;
  overflow-y: auto;
  position: sticky;
  top: 0;
  height: 95vh;
}
.rbm-nav .rbm-nav-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rbm-nav-item {
  padding: 14px 16px;
  border-radius: var(--rbm-radius-md);
  background: linear-gradient(180deg, #ffffff, #f9fbf9);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--rbm-text-dark);
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.25s ease;
}
.rbm-nav-item:hover {
  background: #f1f9f1;
}
.rbm-nav-item.active {
  background: linear-gradient(
    90deg,
    var(--rbm-green) 0%,
    var(--rbm-green-light) 100%
  );
  color: var(--rbm-white);
  box-shadow: 0 10px 25px rgba(46, 125, 50, 0.2);
}

/* Content */
.rbm-content {
  flex: 1 1 auto;
  padding: 36px 32px;
  overflow-y: auto;
  background: var(--rbm-white);
  scroll-behavior: smooth;
}

/* Category Card */
.rbm-cat {
  background: var(--rbm-white);
  border-radius: var(--rbm-radius-md);
  padding: 30px;
  margin: 32px 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.rbm-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.rbm-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rbm-text-dark);
}
.rbm-cat-price {
  background: #eaf6ea;
  color: var(--rbm-green);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--rbm-radius-sm);
  font-size: 0.95rem;
}

/* Items Grid */
.rbm-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.rbm-item {
  background: linear-gradient(180deg, #ffffff, #f9fbf9);
  border-radius: var(--rbm-radius-sm);
  padding: 16px;
  text-align: left;
  transition: all 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.rbm-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.rbm-item-name {
  font-weight: 600;
  color: var(--rbm-text-dark);
  font-size: 1rem;
}
.rbm-item-price {
  margin-top: 10px;
  font-weight: 700;
  color: var(--rbm-green);
  font-size: 0.9rem;
}
.rbm-price-badge {
  background: var(--rbm-green);
  color: var(--rbm-white);
  padding: 5px 10px;
  border-radius: var(--rbm-radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Scrollbar styling */
.rbm-content::-webkit-scrollbar,
.rbm-nav::-webkit-scrollbar {
  width: 8px;
}
.rbm-content::-webkit-scrollbar-thumb,
.rbm-nav::-webkit-scrollbar-thumb {
  background: rgba(46, 125, 50, 0.4);
  border-radius: 10px;
}
.rbm-content::-webkit-scrollbar-thumb:hover,
.rbm-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(46, 125, 50, 0.6);
}

/* Responsive */
@media (max-width: 900px) {
  .rbm-nav {
    display: none;
  }
  .rbm-content {
    padding: 24px;
  }
  .rbm-cat {
    padding: 22px;
    margin: 24px 0;
  }
}
