/* Clou City Theme - Futurism Black/Pink/White */

:root {
  --primary-color: #ff1493; /* Deep pink */
  --secondary-color: #ff69b4; /* Hot pink */
  --accent-color: #00ffff; /* Cyan */
  --dark-bg: #0a0a0a; /* Very dark */
  --card-bg: #1a1a1a; /* Dark gray */
  --text-primary: #ffffff; /* White */
  --text-secondary: #cccccc; /* Light gray */
  --border-color: #333333; /* Medium gray */
}

/* Body and general styles */
body {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2a2a 100%);
  color: var(--text-primary);
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Page styles */
.page {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 100px; /* Space for bottom nav */
}

.page h1 {
  color: var(--primary-color);
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

/* Bottom Navigation */
.bottom-navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-top: 2px solid var(--primary-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: none;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  min-width: 60px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.nav-item:hover {
  background: rgba(255, 20, 147, 0.1);
  color: var(--primary-color);
}

.nav-item.active {
  color: var(--primary-color);
  background: rgba(255, 20, 147, 0.2);
}

.nav-item.active .nav-icon {
  filter: drop-shadow(0 0 5px var(--primary-color));
}

.nav-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.nav-label {
  font-size: 12px;
  font-weight: 500;
}

/* Search section */
.search-section {
  margin-bottom: 20px;
}

.search-input-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
}

.search-button {
  padding: 12px 20px;
  background: var(--primary-color);
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  background: var(--secondary-color);
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

/* Filters */
.filters-section {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.category-filter,
.sort-filter {
  padding: 10px 15px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-filter:focus,
.sort-filter:focus {
  border-color: var(--primary-color);
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.2);
  border-color: var(--primary-color);
}

.product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-info {
  padding: 15px;
}

.product-name {
  margin: 0 0 8px 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.product-price {
  margin: 0;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: bold;
}

.product-card button {
  width: 100%;
  margin-top: 10px;
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.favorite-btn:hover {
  background: var(--primary-color);
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: var(--secondary-color);
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

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

.btn-small {
  padding: 8px 16px;
  font-size: 12px;
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  z-index: 10000;
  animation: slideIn 0.3s ease-out;
}

.notification-success {
  background: #4caf50;
}

.notification-error {
  background: #f44336;
}

.notification-info {
  background: var(--accent-color);
  color: black;
}

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

/* Cart styles */
.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
}

.cart-item-image img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  margin: 0 0 5px 0;
  font-weight: 600;
}

.cart-item-price {
  color: var(--primary-color);
  font-weight: bold;
}

.cart-summary {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.total-row {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  font-weight: bold;
  font-size: 18px;
}

.total-amount {
  color: var(--primary-color);
}

/* Form styles */
.form-section {
  margin-bottom: 25px;
}

.form-section h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
}

.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.radio-label:hover {
  background: rgba(255, 20, 147, 0.1);
}

.radio-label input[type="radio"] {
  width: auto;
  margin: 0;
}

/* Order summary */
.order-summary {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
}

.order-items {
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.order-totals {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.order-totals .total-row {
  margin-bottom: 8px;
}

.final-total {
  font-size: 20px;
  color: var(--primary-color);
}

/* Profile styles */
.profile-header {
  text-align: center;
  margin-bottom: 30px;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.profile-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
}

.profile-details h2 {
  margin: 0 0 5px 0;
  color: var(--primary-color);
}

.referral-stats {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
}

.referral-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

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

.stat-label {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
}

.stat-value {
  display: block;
  color: var(--primary-color);
  font-size: 18px;
  font-weight: bold;
}

.referral-code {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.code-label {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
}

.code-value {
  display: block;
  color: var(--accent-color);
  font-size: 16px;
  font-weight: bold;
  font-family: monospace;
}

/* Orders list */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.order-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 20px;
}

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

.order-number {
  font-weight: bold;
  font-size: 18px;
}

.order-status {
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-new {
  background: #ffa000;
  color: black;
}

.status-confirmed {
  background: #4caf50;
  color: white;
}

.status-canceled {
  background: #f44336;
  color: white;
}

.order-details {
  margin-bottom: 15px;
}

.order-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.order-total {
  font-weight: bold;
  font-size: 16px;
  color: var(--primary-color);
}

.order-actions {
  text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }

  .filters-section {
    flex-direction: column;
  }

  .category-filter,
  .sort-filter {
    width: 100%;
  }

  .profile-info {
    flex-direction: column;
    text-align: center;
  }

  .referral-info {
    grid-template-columns: 1fr;
  }

  .radio-group {
    flex-direction: column;
    gap: 10px;
  }
}