:root {
  /* Colors - Earthy, Trekking Inspired */
  --primary: #2d6a4f;
  --primary-light: #40916c;
  --primary-dark: #1b4332;
  --accent: #d4a373; /* Earthy sand/leather */
  --accent-light: #faedcd;
  --bg-main: #f8f9fa;
  --bg-card: #ffffff;
  --text-main: #2d3436;
  --text-muted: #636e72;
  --border-color: #e9ecef;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  
  /* Layout */
  --sidebar-left-width: 80px;
  --sidebar-right-width: 320px;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

/* Layout Structure */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Header */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.logo-container {
  display: flex;
  align-items: center;
  width: 200px;
}

.logo-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-bar-container {
  flex: 1;
  max-width: 600px;
  margin: 0 40px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 24px;
  padding-right: 100px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: #f1f3f5;
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1);
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 200px;
  justify-content: flex-end;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f5;
  color: var(--text-main);
  position: relative;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--primary-light);
  color: white;
}

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* Sidebar Left */
.sidebar-left {
  position: fixed;
  left: 0;
  top: var(--header-height);
  bottom: 0;
  width: var(--sidebar-left-width);
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  border-right: 1px solid var(--border-color);
  z-index: 900;
}

.nav-item {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text-muted);
  transition: all 0.2s;
}

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

.nav-item:hover:not(.active) {
  background: var(--bg-main);
  color: var(--primary);
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-left-width);
  margin-right: var(--sidebar-right-width);
  margin-top: var(--header-height);
  flex: 1;
  padding: 32px;
  max-width: 1000px;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 24px;
  color: var(--text-main);
}

.view-all {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  cursor: pointer;
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-light);
}

.product-image {
  width: 100%;
  height: 200px;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tag-rent { color: #00b4d8; }
.tag-sale { color: #e67e22; }

.product-info {
  padding: 20px;
}

.product-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.add-to-cart {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

/* Post Box */
.post-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.post-box-header {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dfe6e9;
  flex-shrink: 0;
  overflow: hidden;
}

.post-input {
  flex: 1;
  background: #f1f3f5;
  border-radius: 30px;
  padding: 12px 24px;
  border: none;
  outline: none;
  font-size: 15px;
}

.post-box-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.post-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #f8f9fa;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.post-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 700;
  cursor: pointer;
}

/* Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.post-user-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.post-user-name {
  font-weight: 700;
  font-size: 16px;
}

.post-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.badge-pro {
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  margin-left: 6px;
}

.post-content {
  margin-bottom: 16px;
}

.post-image-attachment {
  width: 100%;
  height: 300px;
  background: #f1f3f5;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.post-actions {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Sidebar Right */
.sidebar-right {
  position: fixed;
  right: 0;
  top: var(--header-height);
  bottom: 0;
  width: var(--sidebar-right-width);
  background: white;
  border-left: 1px solid var(--border-color);
  padding: 32px 24px;
  overflow-y: auto;
  z-index: 900;
}

.profile-card {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 32px;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: #dfe6e9;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-weight: 800;
  font-size: 16px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.sidebar-section {
  margin-bottom: 32px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}

.trend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.trend-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f3f5;
}

.trend-info h4 {
  font-size: 14px;
  margin-bottom: 2px;
}

.trend-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.shop-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.shop-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

/* Form & Settings Components */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }
.form-control { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--border-color); outline: none; transition: border-color 0.2s; }
.form-control:focus { border-color: var(--primary); }

.payment-method { border: 1px solid var(--border-color); padding: 16px; border-radius: 12px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all 0.2s; margin-bottom: 12px; }
.payment-method.active { border-color: var(--primary); background: rgba(45, 106, 79, 0.05); }

.settings-item { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border-color); }
.settings-info h4 { margin-bottom: 4px; }
.settings-info p { font-size: 13px; color: var(--text-muted); }

.toggle { width: 44px; height: 24px; background: #dfe6e9; border-radius: 12px; position: relative; cursor: pointer; transition: background 0.2s; }
.toggle.active { background: var(--primary); }
.toggle::after { content: ''; width: 18px; height: 18px; background: white; border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: 0.2s; }
.toggle.active::after { left: 23px; }

/* Flex & Utility Classes */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-column { display: flex; flex-direction: column; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-16 { margin-top: 16px; }
.mb-32 { margin-bottom: 32px; }
.w-full { width: 100%; }
.text-center { text-align: center; }

/* Utilities */
.placeholder-image {
  background-color: #f1f3f5;
  background-image: linear-gradient(45deg, #f1f3f5 25%, #e9ecef 25%, #e9ecef 50%, #f1f3f5 50%, #f1f3f5 75%, #e9ecef 75%, #e9ecef 100%);
  background-size: 20px 20px;
}

.placeholder-avatar {
  background-color: #dee2e6;
  position: relative;
  overflow: hidden;
}

.placeholder-avatar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40%;
  background: #ced4da;
  border-radius: 20px 20px 0 0;
}

.placeholder-avatar::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 40%;
  background: #ced4da;
  border-radius: 50%;
}

.btn-outline {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: white;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.btn-outline:hover {
  background: var(--bg-main);
  border-color: var(--primary);
}

@media (max-width: 1200px) {
  .sidebar-right {
    display: none;
  }
  .main-content {
    margin-right: 0;
  }
}
