/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #1a6b3a;
  --primary-green-dark: #14522d;
  --accent-yellow: #d4a843;
  --accent-yellow-light: #e8c56a;
  --bg-gray: #f0f0f0;
  --card-bg: #ffffff;
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #999999;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: var(--bg-gray);
  color: var(--text-dark);
  min-height: 100vh;
}

.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 80px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--primary-green);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2d8a4e 0%, #1a6b3a 100%);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-yellow);
  position: relative;
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--border-radius-sm);
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-yellow-light));
  z-index: -1;
}

.be-text {
  color: var(--accent-yellow);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.5px;
}

.logo-text {
  color: var(--accent-yellow);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.add-to-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-yellow);
  color: var(--primary-green);
  border: none;
  padding: 8px 14px;
  border-radius: var(--border-radius-xl);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.header-icon {
  color: var(--accent-yellow);
  cursor: pointer;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero Banner */
.hero-banner {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 20px 20px 16px;
  text-align: center;
  position: relative;
}

.hero-title {
  color: var(--primary-green);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 6px;
  margin-bottom: 8px;
}

.hero-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ddd;
  display: inline-block;
}

.dot.active {
  background-color: var(--accent-yellow);
  width: 20px;
  border-radius: 4px;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.menu-item {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.menu-item:active {
  transform: scale(0.96);
}

.menu-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-yellow);
}

.menu-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-green);
  letter-spacing: 0.5px;
}

/* Tabs */
.tabs-section {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 6px;
}

.tabs {
  display: flex;
  gap: 4px;
}

.tab {
  flex: 1;
  padding: 12px 8px;
  border: none;
  background: transparent;
  color: var(--text-medium);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background-color: var(--primary-green);
  color: white;
}

/* Product Section */
.product-section {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.product-badge {
  background-color: var(--primary-green);
  color: var(--accent-yellow);
  padding: 8px 16px;
  border-radius: var(--border-radius-xl);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.buy-btn {
  background-color: var(--accent-yellow);
  color: var(--primary-green);
  border: none;
  padding: 8px 24px;
  border-radius: var(--border-radius-xl);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.product-image {
  width: 100%;
  display: flex;
  justify-content: center;
}

.product-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background-color: var(--card-bg);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  border-top: 1px solid #eee;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-medium);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 16px;
}

.nav-item.active {
  color: var(--primary-green);
}

.nav-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item.active .nav-icon-wrapper {
  color: var(--primary-green);
}
