/* assets/css/main.css - CampusMarket Styles - Fully Responsive */
/* UPDATED with Light Blue theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #060606;        /* Light Blue primary */
  --primary-dark: #42A5F5;    /* Slightly darker light blue */
  --primary-darker: #1E88E5;  /* Dark blue for buttons/links */
  --primary-light: #E3F2FD;   /* Very light blue for backgrounds */
  --secondary: #1a39fe;       /* White */
  --accent: #1E88E5;          /* Dark blue accent */
  --accent-light: #E3F2FD;
  --danger: #FF3B5C;
  --warning: #FFB800;
  --bg: #F8F9FA;              /* Slightly off-white background */
  --surface: #FFFFFF;         /* White surface */
  --surface2: #F5F7FA;        /* Light gray for secondary surfaces */
  --border: #E0E7EF;          /* Light blue-gray border */
  --text: #1A2B3C;            /* Dark blue-gray text */
  --text-muted: #5A6B7C;      /* Muted blue-gray text */
  --text-light: #8A9AAB;      /* Light blue-gray text */
  --shadow-sm: 0 1px 3px rgba(30,136,229,0.08);
  --shadow: 0 4px 16px rgba(30,136,229,0.12);
  --shadow-lg: 0 8px 32px rgba(30,136,229,0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --nav-height: 64px;
  --font: 'Inter', sans-serif;
  --container-max: 1200px;
  --header-height: 64px;
}



/* Reset & Base */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  font-size: 16px; 
  -webkit-text-size-adjust: 100%; 
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

/* Container System */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }

/* Responsive Grid */
.grid {
  display: grid;
  gap: 20px;
  padding: 16px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive Breakpoints */
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 12px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 641px) and (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1025px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .container { padding: 0 24px; }
}

/* Top Header - Fully Responsive */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .top-header { padding: 0 24px; }
}

.header-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-darker);
  white-space: nowrap;
}

.header-logo span { color: var(--text); }

.header-search {
  flex: 1;
  max-width: 500px;
  margin: 0 16px;
  position: relative;
}

@media (max-width: 640px) {
  .header-search { display: none; }
  .mobile-search-btn { display: block; }
}

.header-search input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 44px;
  background: var(--surface2);
  border: 1.5px solid transparent;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
}

.header-search input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(100,181,246,0.1);
}

.header-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--surface2);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 18px;
  transition: all 0.2s;
  position: relative;
  cursor: pointer;
}

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

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

/* Bottom Navigation - Responsive */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(30,136,229,0.08);
}

@media (min-width: 768px) {
  .bottom-nav {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px 20px 0 0;
  }
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s;
  position: relative;
  padding: 8px 4px;
  cursor: pointer;
}

.nav-item i { font-size: 20px; }

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

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  background: var(--primary-darker);
  border-radius: 0 0 4px 4px;
}

.nav-item .nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 16px);
  min-width: 16px;
  height: 16px;
  background: var(--accent);
  color: white;
  font-size: 9px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--surface);
}

/* Page Container */
.page-container {
  display: none;
  min-height: calc(100vh - var(--nav-height));
  padding-bottom: 20px;
}

.page-container.active { display: block; }

/* Product Grid */
.products-grid {
  display: grid;
  gap: 16px;
  padding: 16px;
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1025px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Vendor Badge Styles */
.vendor-badge {
  display: inline-flex;
  align-items: center;
  background: #e6f4ff;
  color: #007bff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 5px;
  white-space: nowrap;
}

.vendor-badge i {
  margin-right: 4px;
  font-size: 10px;
}

.vendor-badge.featured {
  background: #fff3cd;
  color: #856404;
}

.store-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.store-info {
  flex: 1;
  min-width: 0;
}

.store-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 20px;
  margin: 6px 0;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
  position: relative;
  flex-wrap: wrap;
}

.product-store-badge .vendor-badge {
  margin-left: 4px;
  padding: 2px 6px;
  font-size: 9px;
}

/* Product Card */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

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

.product-img-wrap {
  position: relative;
  padding-top: 100%;
  background: var(--surface2);
  overflow: hidden;
}

.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  backdrop-filter: blur(4px);
  transition: all 0.2s;
  z-index: 2;
  cursor: pointer;
}

.product-fav-btn.active { color: var(--danger); }
.product-fav-btn:hover { 
  transform: scale(1.1);
  background: var(--primary-light);
  color: var(--primary-darker);
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  z-index: 2;
}

.product-badge.sale { background: var(--danger); color: white; }
.product-badge.new { background: var(--accent); color: white; }

.product-info { padding: 12px; }

.product-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-store {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-darker);
}

.product-original-price {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 6px;
}

.add-to-cart-btn {
  width: 32px;
  height: 32px;
  background: var(--primary-darker);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.add-to-cart-btn:hover { 
  background: var(--primary);
  transform: scale(1.05); 
}

/* Forms - Responsive */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--surface2);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(100,181,246,0.1);
}

textarea.form-input {
  height: auto;
  padding: 12px 16px;
  min-height: 100px;
  resize: vertical;
}

.form-select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--surface2);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6B7C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--primary);
  background-color: var(--surface);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 48px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover { 
  background: var(--primary-darker); 
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,136,229,0.3);
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
}

.btn-secondary:hover { 
  background: var(--border); 
  color: var(--primary-darker);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

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

.btn-full { width: 100%; }

.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; border-radius: 18px; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 16px; border-radius: 28px; }

/* Responsive Tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 600px;
}

th {
  background: var(--surface2);
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

/* Category Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

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

.category-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.category-checkbox:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.category-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* Hero Sections */
.hero-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-darker));
  color: white;
  padding: 40px 24px;
  text-align: center;
  border-radius: 0;
  margin-bottom: 24px;
}

.hero-icon {
  font-size: 48px;
  color: white;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-section h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: white;
}

.hero-section p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  color: white;
}

/* Status Cards */
.status-card,
.success-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  margin: 24px 16px;
  box-shadow: var(--shadow);
}

.status-icon,
.success-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--primary-darker);
}

.status-card h2,
.success-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

/* Error Message */
.error-message {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FEF2F2;
  color: var(--danger);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin: 16px;
  border: 1px solid #FCA5A5;
}

/* Form Sections */
.form-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0 16px 24px;
  box-shadow: var(--shadow-sm);
}

.form-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.form-section h3 i {
  color: var(--accent);
}

.required {
  color: var(--danger);
  margin-left: 2px;
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-header h1 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

.back-link {
  color: var(--text-muted);
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.back-link:hover {
  background: var(--primary-light);
  color: var(--primary-darker);
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  margin-top: 2px;
}

.checkbox-label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.checkbox-label a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
  color: var(--primary-darker);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.empty-icon {
  font-size: 64px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.empty-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.empty-text {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 300px;
  margin-bottom: 24px;
}

/* Category Chips */
.category-scroll {
  display: flex;
  gap: 8px;
  padding: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar { display: none; }

.cat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-chip i { font-size: 14px; }

.cat-chip:hover {
  border-color: var(--primary);
  color: var(--primary-darker);
  background: var(--primary-light);
}

.cat-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.cat-chip.active i {
  color: white;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px);
  left: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--primary-darker);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  pointer-events: auto;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.toast i { font-size: 16px; }

.toast.success { background: var(--accent); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); color: var(--text); }

/* Product Detail */
.product-detail {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 500;
  overflow-y: auto;
  display: none;
}

.product-detail.open { 
  display: block; 
  animation: slideIn 0.3s ease;
}

.product-detail-imgs {
  position: relative;
  height: 300px;
  background: var(--surface2);
}

.product-detail-imgs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content {
  padding: 24px 20px;
}

.detail-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.detail-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.detail-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-darker);
  margin-bottom: 4px;
}

.detail-original {
  font-size: 16px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-bottom: 16px;
}

.detail-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 16px;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Profile Page */
.profile-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-darker));
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: white;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.3);
  color: var(--accent);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
  color: white;
}

.profile-email {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 12px;
  color: white;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.2);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

/* Menu List */
.menu-list {
  padding: 16px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  width: 100%;
  text-align: left;
}

.menu-item:hover {
  background: var(--primary-light);
  transform: translateX(4px);
}

.menu-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.menu-item-icon.orange { background: var(--primary-light); color: var(--accent); }
.menu-item-icon.green { background: var(--primary-light); color: var(--accent); }
.menu-item-icon.blue { background: var(--primary-light); color: var(--accent); }
.menu-item-icon.red { background: #FEF2F2; color: var(--danger); }
.menu-item-icon.purple { background: var(--primary-light); color: var(--accent); }

.menu-item-content {
  flex: 1;
}

.menu-item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text);
}

.menu-item-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.menu-item-arrow {
  color: var(--text-light);
  font-size: 20px;
}

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* Store Page */
.store-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.store-banner {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-darker));
  position: relative;
  overflow: hidden;
}

.store-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-info {
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-end;
  margin-top: -40px;
}

.store-logo {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  border: 4px solid var(--surface);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: white;
  overflow: hidden;
  flex-shrink: 0;
}

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

.store-details {
  flex: 1;
}

.store-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text);
}

.store-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.store-stats {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

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

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

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

/* Cart Page */
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.cart-item-store {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-item-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-darker);
  margin-bottom: 8px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  background: var(--surface2);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.quantity-btn:hover {
  background: var(--primary-light);
  color: var(--accent);
}

.quantity-value {
  font-size: 16px;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
  color: var(--text);
}

.cart-remove {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.cart-remove:hover { color: var(--danger); }

.cart-summary {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
  border: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}

.cart-actions {
  padding: 0 16px 20px;
}

/* Auth Pages */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.auth-logo span { color: var(--text); }

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--surface2);
  padding: 4px;
  border-radius: 12px;
}

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

.auth-tab.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* Password Input */
.password-input {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.password-toggle:hover {
  color: var(--accent);
}

/* Reviews Section */
.reviews-section {
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  margin: 16px;
  border: 1px solid var(--border);
}

.review-item {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.review-item:last-child { border-bottom: none; }

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent);
}

.review-user {
  flex: 1;
}

.review-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text);
}

.review-date {
  font-size: 11px;
  color: var(--text-muted);
}

.review-rating {
  display: flex;
  gap: 2px;
  color: #FFB800;
  font-size: 14px;
}

.review-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Follow Button */
.follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
}

.follow-btn:hover {
  background: var(--primary-light);
}

.follow-btn.following {
  background: var(--accent);
  color: white;
}

.follow-btn.following:hover {
  background: var(--danger);
  border-color: var(--danger);
}

/* FAQ Page */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.faq-category {
  margin-bottom: 40px;
}

.faq-category h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--accent);
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.faq-question {
  padding: 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
  color: var(--text);
}

.faq-question:hover {
  background: var(--primary-light);
  color: var(--accent);
}

.faq-question i {
  transition: transform 0.2s;
  color: var(--accent);
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-answer.active {
  padding: 0 20px 20px;
  max-height: 500px;
}

/* Contact Info */
.contact-info {
  background: linear-gradient(135deg, var(--primary), var(--primary-darker));
  color: white;
  padding: 40px 24px;
  border-radius: var(--radius);
  margin: 20px;
  text-align: center;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  margin: 8px;
  font-size: 16px;
  transition: all 0.2s;
}

.contact-item:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.contact-item i {
  font-size: 20px;
}

.contact-item a {
  color: white;
  text-decoration: none;
}

/* Admin Dashboard */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
  border: 1px solid var(--border);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-card-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Image Upload */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface2);
}

.image-upload-area:hover {
  border-color: var(--accent);
  background: var(--primary-light);
}

.image-upload-area input { display: none; }

.upload-icon {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 12px;
}

.upload-text {
  font-size: 14px;
  color: var(--text-muted);
}

.upload-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-pending { background: #FFF8E6; color: var(--warning); }
.badge-approved { background: var(--primary-light); color: var(--accent); }
.badge-rejected { background: #FEF2F2; color: var(--danger); }

/* Responsive Utilities */
.hide-mobile { display: none; }
.show-mobile { display: block; }

@media (min-width: 768px) {
  .hide-mobile { display: block; }
  .show-mobile { display: none; }
}

/* Print Styles */
@media print {
  .bottom-nav,
  .top-header,
  .btn,
  .product-fav-btn,
  .add-to-cart-btn {
    display: none !important;
  }
}
