/* Shop Page Styles */
.shop-main {
  padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 20) 0;
}

.nav-brand a {
  text-decoration: none;
  color: inherit;
}

.nav-menu a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.page-header {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 16);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto;
}

.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacing-unit) * 12);
  padding: calc(var(--spacing-unit) * 6);
  background: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-section {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 3);
}

.filter-section label {
  font-weight: 500;
  color: var(--text-color);
}

.filter-section select {
  padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 4);
  border: 2px solid var(--secondary-color);
  border-radius: calc(var(--border-radius) * 0.5);
  font-family: var(--font-family);
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
}

.filter-section select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: calc(var(--spacing-unit) * 8);
  margin-bottom: calc(var(--spacing-unit) * 12);
}

.product-card {
  background: var(--card-background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.product-category {
  position: absolute;
  top: calc(var(--spacing-unit) * 3);
  left: calc(var(--spacing-unit) * 3);
  background: var(--primary-color);
  color: white;
  padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 3);
  border-radius: calc(var(--border-radius) * 0.5);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.product-info {
  padding: calc(var(--spacing-unit) * 6);
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 3);
  color: var(--text-color);
}

.product-description {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: calc(var(--spacing-unit) * 4);
  line-height: 1.5;
}

.product-features {
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.product-features ul {
  list-style: none;
  font-size: 0.85rem;
}

.product-features li {
  margin-bottom: calc(var(--spacing-unit) * 1);
  position: relative;
  padding-left: calc(var(--spacing-unit) * 5);
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.add-to-cart-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 6);
  border-radius: calc(var(--border-radius) * 0.7);
  font-family: var(--font-family);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
  background: #d1154a;
  transform: translateY(-2px);
}

.add-to-cart-btn:disabled {
  background: var(--secondary-color);
  cursor: not-allowed;
  transform: none;
}

.loading {
  text-align: center;
  padding: calc(var(--spacing-unit) * 8);
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.7;
}

/* Popular Badge */
.product-card.popular::after {
  content: '🔥 Popular';
  position: absolute;
  top: calc(var(--spacing-unit) * 3);
  right: calc(var(--spacing-unit) * 3);
  background: #ff6b35;
  color: white;
  padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 3);
  border-radius: calc(var(--border-radius) * 0.5);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .filters {
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 4);
  }

  .filter-section {
    width: 100%;
    justify-content: space-between;
  }

  .filter-section select {
    flex: 1;
    max-width: 200px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 6);
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 100%;
  }

  .filters {
    padding: calc(var(--spacing-unit) * 4);
  }

  .filter-section {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 2);
  }

  .filter-section select {
    width: 100%;
    max-width: none;
  }
}