/* Pasteles de Autor Page Styles */

/* Page Container */
.pasteles-autor-page {
  min-height: 100vh;
  background: #ffffff;
  padding-top: 100px;
}

/* Slider adjustments for this page */
.pasteles-autor-page .featured-slider-container {
  margin: 2rem 0 3rem;
  padding: 0;
  background: #f9fafb;
  padding: 3rem 0;
}

/* Page Header */
.page-header {
  padding: 4rem 0 3rem;
  text-align: center;
  background: #ffffff;
  border-bottom: 1px solid #f3f4f6;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--fg);
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.page-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* Filters Section */
.filters-section {
  padding: 2rem 0;
  background: #fafafa;
  border-bottom: 1px solid #f3f4f6;
}

.filters-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.sort-label {
  font-size: 0.9rem;
  color: var(--fg);
  font-weight: 600;
  white-space: nowrap;
}

.sort-select {
  padding: 0.75rem 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: var(--fg);
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  min-width: 220px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.sort-select:hover {
  border-color: var(--accent);
}

.sort-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Products Section */
.products-section {
  padding: 4rem 0 6rem;
  background: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product Card */
.product-card {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #e5e7eb;
  background: #fafafa;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f9fafb;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.product-card:hover .product-name {
  color: var(--accent);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fg);
  margin: 0;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-stars {
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 2px;
  line-height: 1;
}

.product-reviews {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Loading and Empty States */
.products-loading,
.products-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Responsive Design */
@media (min-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .pasteles-autor-page {
    padding-top: 80px;
  }

  .page-header {
    padding: 2.5rem 0 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-description {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .filters-section {
    padding: 1.5rem 0;
  }

  .filters-wrapper {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem;
  }

  .sort-select {
    width: 100%;
    min-width: auto;
  }

  .products-section {
    padding: 2rem 0 4rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .product-info {
    padding: 1.25rem;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .page-title {
    font-size: 1.75rem;
  }
}

