/**
 * PeakAura - Products Page Specific Styles
 */

/* Products Hero Section */
.products-hero {
  background-color: #F0FFF4;
  background-image: linear-gradient(to right, #F0FFF4, #D1FAE5);
  padding: 3rem 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.products-hero:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1.5" fill="%232E8B57" opacity="0.1"/></svg>');
  background-size: 50px 50px;
}

.products-hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.products-hero h1 {
  color: #2E8B57;
  margin-bottom: 1rem;
  font-size: 2.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: fadeInDown 0.8s ease;
}

.products-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.25rem;
  color: #4B5563;
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Products Filters Container */
.products-filters-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Products Filters */
.products-filters {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  align-self: start;
  position: sticky;
  top: 100px;
}

.products-filters h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #E5E7EB;
  color: #111;
}

.search-filter {
  margin-bottom: 1.5rem;
}

.search-input {
  position: relative;
}

.search-input input {
  padding-right: 40px;
}

.search-input button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: none;
  border: none;
  color: #6B7280;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-input button:hover {
  color: #2E8B57;
}

.categories-filter {
  margin-bottom: 1.5rem;
}

.categories-filter ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-filter li {
  margin-bottom: 0.75rem;
}

.categories-filter a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #4B5563;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  padding-left: 2rem;
}

.categories-filter a:before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #E5E7EB;
  transition: background-color 0.3s ease;
}

.categories-filter a:hover {
  color: #2E8B57;
  background-color: #F0FFF4;
}

.categories-filter a:hover:before {
  background-color: #2E8B57;
}

.categories-filter a.active {
  color: #2E8B57;
  background-color: #F0FFF4;
  font-weight: 600;
}

.categories-filter a.active:before {
  background-color: #2E8B57;
}

.filter-section {
  margin-bottom: 1.5rem;
}

.price-range {
  margin-bottom: 1rem;
}

.price-input {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.price-input input {
  width: 80px;
  padding: 0.5rem;
}

.price-input span {
  margin: 0 0.5rem;
  color: #6B7280;
}

.price-apply {
  width: 100%;
}

.rating-filter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 0.75rem;
}

.checkbox-label .stars {
  margin-right: 0.5rem;
  color: #F59E0B;
}

.checkbox-label .rating-count {
  color: #6B7280;
  font-size: 0.875rem;
}

/* Products Main Content */
.products-main {
  flex: 1;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.results-count {
  color: #6B7280;
}

.products-sort {
  display: flex;
  align-items: center;
}

.products-sort label {
  margin-right: 0.5rem;
  margin-bottom: 0;
  color: #6B7280;
}

.sort-select {
  min-width: 160px;
}

/* Products Grid Enhanced */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.product-card {
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.product-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-new {
  background-color: #2E8B57;
  color: #fff;
}

.badge-sale {
  background-color: #EF4444;
  color: #fff;
}

.product-image {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  background-color: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
  position: relative;
  overflow: hidden;
}

.product-image img {
  max-height: 85%;
  max-width: 85%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-actions {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  color: #6B7280;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-icon:hover {
  background-color: #2E8B57;
  color: #fff;
  transform: translateY(-3px);
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  font-size: 0.75rem;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.product-name {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

.product-name a {
  color: #111;
  transition: color 0.3s ease;
}

.product-name a:hover {
  color: #2E8B57;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.product-rating .stars {
  color: #F59E0B;
  margin-right: 0.5rem;
  font-size: 0.875rem;
}

.product-rating .rating-count {
  color: #6B7280;
  font-size: 0.75rem;
}

.product-subtitle {
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-container {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.original-price {
  color: #6B7280;
  text-decoration: line-through;
  font-size: 0.875rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2E8B57;
}

.product-buttons {
  display: flex;
  gap: 0.5rem;
}

.product-buttons .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* No Products Found */
.no-products {
  padding: 3rem 0;
  text-align: center;
}

.no-products-content {
  max-width: 500px;
  margin: 0 auto;
}

.no-products-content i {
  font-size: 3.5rem;
  color: #D1D5DB;
  margin-bottom: 1.5rem;
}

.no-products-content h2 {
  margin-bottom: 1rem;
  color: #111;
}

.no-products-content p {
  margin-bottom: 1.5rem;
  color: #6B7280;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  background-color: #fff;
  border: 1px solid #D1D5DB;
  border-radius: 0.25rem;
  color: #6B7280;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled) {
  background-color: #F0FFF4;
  color: #2E8B57;
  border-color: #2E8B57;
}

.pagination-btn.active {
  background-color: #2E8B57;
  color: #fff;
  border-color: #2E8B57;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #6B7280;
}

/* Product Benefits Section */
.product-benefits {
  background-color: #F7F8FA;
  padding: 4rem 0;
  margin-top: 3rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #D1FAE5;
  color: #2E8B57;
  font-size: 1.5rem;
  border-radius: 50%;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.benefit-content h3 {
  margin-bottom: 0.75rem;
  color: #111;
  font-size: 1.25rem;
}

.benefit-content p {
  color: #6B7280;
  margin-bottom: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #333;
  font-size: 1.5rem;
  cursor: pointer;
}

.header-content.mobile-menu-active .main-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  padding: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-content.mobile-menu-active .main-menu li {
  margin: 0.5rem 0;
  width: 100%;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .products-filters-container {
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
  }
  
  .product-image {
    height: 200px;
  }
}

@media (max-width: 991px) {
  .products-hero h1 {
    font-size: 2.25rem;
  }
  
  .products-hero p {
    font-size: 1.125rem;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .products-filters-container {
    grid-template-columns: 1fr;
  }
  
  .products-filters {
    position: static;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-menu {
    display: none;
  }
  
  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .products-sort {
    width: 100%;
  }
  
  .sort-select {
    flex: 1;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  .benefit-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .benefit-icon {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .products-hero {
    padding: 2rem 0;
  }
  
  .products-hero h1 {
    font-size: 2rem;
  }
  
  .product-image {
    height: 180px;
  }
  
  .product-buttons {
    flex-direction: column;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}