/* Store Products Page Styles - Enterprise Level */
* {
  text-decoration: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.store-products {
  background: #f8f9fa;
  min-height: 100vh;
  padding: 4rem 0;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 700;
}

.page-header p {
  color: #666;
  font-size: 1.1rem;
}

/* Enterprise-level Product Management */
.products-management {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.products-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 1rem;
}

.filters-section h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

.filter-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  color: #374151;
  font-size: 0.9rem;
  min-width: 150px;
  transition: all 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.view-toggle {
  display: flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 4px;
}

.view-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: #6b7280;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  font-weight: 500;
}

.view-btn.active {
  background: white;
  color: #667eea;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.products-count {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
}

.products-container {
  margin-top: 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.product-card-container {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.product-card * {
  text-decoration: none;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
  border-color: rgba(15, 23, 42, 0.12);
}

.product-thumb {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #f5f6fa;
}

.product-thumb img,
.product-thumb .no-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #99a0b0;
  font-weight: 500;
}

.product-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.featured {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.badge.new {
  background: #10b981;
  color: white;
}

.product-info {
  padding: 1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  width: 100%;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.1rem;
  color: #667eea;
  font-weight: 700;
  margin: 0;
}

.product-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.add-to-cart-btn {
  flex: 1 1 auto;
  padding: 0.65rem 0.9rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.add-to-cart-btn:hover {
  background: #5a6fd8;
}

.add-to-cart-btn .cart-icon {
  stroke: currentColor;
}

.wishlist-btn {
  width: 44px;
  border: none;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111827;
}

.wishlist-icon {
  stroke: currentColor;
  fill: none;
}

.wishlist-btn.is-active .wishlist-icon,
.wishlist-btn.active .wishlist-icon {
  fill: #ef4444;
  stroke: #ef4444;
}

.no-products {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.no-products-content {
  text-align: center;
  max-width: 500px;
}

.no-products-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.no-products-content h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.no-products-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.back-to-home-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-to-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .products-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-options {
    flex-direction: column;
  }

  .filter-select {
    min-width: auto;
  }

  .view-controls {
    justify-content: space-between;
  }

  .products-grid.list-view .product-card {
    flex-direction: column;
  }

  .products-grid.list-view .product-thumb {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-thumb {
    height: 150px;
  }

  .product-info {
    padding: 0.75rem 0.85rem 1rem;
    gap: 0;
  }

  .product-name {
    font-size: 0.95rem;
  }

  .product-price {
    font-size: 0.95rem;
  }

  .product-actions {
    gap: 0.45rem;
  }

  .add-to-cart-btn {
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .view-toggle {
    display: none;
  }

  .store-products {
    padding: 2rem 0;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .products-management {
    padding: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .product-thumb {
    height: 125px;
  }

  .product-info {
    padding: 0.5rem;
  }

  .product-name {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .product-price {
    font-size: 0.85rem;
  }

  .add-to-cart-btn {
    padding: 0.35rem 0.45rem;
    font-size: 0.75rem;
  }
}

