/* Product Grid Page - Shirts Collection */

/* Products Section */
.products-section {
  padding-top: 7rem;
  padding-bottom: 4rem;
  min-height: 100vh;
}

/* Hero Header */
.hero-header {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-white);
  max-width: 600px;
  padding: 0 2rem;
}

.hero-content .breadcrumb {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-content .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.hero-content .breadcrumb a:hover {
  color: var(--color-white);
}

.hero-title {
  font-family: var(--font-montserrat);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Toolbar Section */
.toolbar-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.toolbar-left {
  flex: 1;
}

.results-count {
  font-family: var(--font-inter);
  color: var(--color-gray-medium);
  font-size: 0.875rem;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sort-label {
  font-family: var(--font-montserrat);
  font-weight: 500;
  color: var(--color-gray-dark);
  font-size: 0.875rem;
}

.sort-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-inter);
  font-size: 0.875rem;
  background-color: var(--color-white);
  color: var(--color-gray-dark);
  cursor: pointer;
  transition: var(--transition);
  min-width: 150px;
}

.sort-select:focus {
  outline: none;
  border-color: var(--color-black);
}

.view-toggle {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.view-btn {
  padding: 0.5rem;
  background-color: var(--color-white);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-gray-medium);
}

.view-btn:hover {
  background-color: var(--color-gray);
  color: var(--color-black);
}

.view-btn.active {
  background-color: var(--color-black);
  color: var(--color-white);
}

.view-btn + .view-btn {
  border-left: 1px solid var(--color-border);
}

/* Remove old page header styles */
.page-header {
  display: none;
}

/* Remove filter section styles */
.filter-sort-section,
.filter-options,
.filter-group,
.filter-label,
.filter-buttons,
.filter-btn {
  display: none !important;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-item {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.product-item:hover {
  transform: translateY(-10Spx);
  box-shadow: var(--shadow-lg);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-item-image {
  position: relative;

  /* left: .25rem; */
  overflow: hidden;
  height: 30rem;
  width: 22rem;
}

.product-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-item-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-montserrat);
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.product-item-badge.sale {
  background-color: #e74c3c;
}

.product-item-badge.new {
  background-color: #27ae60;
}

.product-item-badge.limited {
  background-color: #f39c12;
}

.product-item-badge.trending {
  background-color: #9b59b6;
}

.product-action-btn {
  width: 36px;
  height: 36px;
  background-color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product-action-btn:hover {
  background-color: var(--color-black);
  color: var(--color-white);
  transform: scale(1.1);
}

.product-item-details {
  padding: 1.5rem;
}

.product-item-title {
  font-family: var(--font-montserrat);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.product-item-description {
  color: var(--color-gray-medium);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-item-price {
  font-family: var(--font-montserrat);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.product-item-price .original-price {
  text-decoration: line-through;
  color: var(--color-gray-medium);
  font-weight: 400;
  margin-right: 0.5rem;
}

.product-item-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.product-item-stars {
  color: var(--color-yellow);
  font-size: 0.875rem;
}

.product-item-rating-count {
  font-size: 0.75rem;
  color: var(--color-gray-medium);
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature-tag {
  padding: 0.25rem 0.5rem;
  background-color: var(--color-gray);
  color: var(--color-gray-dark);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-item-sizes {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.size-option {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.size-option:hover {
  border-color: var(--color-black);
}

.size-option.selected {
  background-color: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.product-item-colors {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.color-option {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 1px var(--color-border);
  transition: var(--transition);
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  box-shadow: 0 0 0 2px var(--color-black);
}

.color-white {
  background-color: #ffffff;
}
.color-black {
  background-color: #000000;
}
.color-blue {
  background-color: #3498db;
}
.color-navy {
  background-color: #2c3e50;
}
.color-gray {
  background-color: #95a5a6;
}

.product-item-btn {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--color-black);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-montserrat);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.product-item-btn:hover {
  background-color: #333;
  transform: translateY(-2px);
}

/* Load More Section */
.load-more-section {
  text-align: center;
  margin: 3rem 0;
}

#load-more-btn {
  min-width: 200px;
  position: relative;
}

#load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading Indicator */
.loading {
  text-align: center;
  padding: 3rem 0;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid var(--color-gray);
  border-top: 3px solid var(--color-black);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading p {
  font-family: var(--font-montserrat);
  font-weight: 500;
  color: var(--color-gray-medium);
}

/* No Products Message */
.no-products {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--color-gray);
  border-radius: var(--radius-lg);
}

.no-products h3 {
  font-family: var(--font-montserrat);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.no-products p {
  color: var(--color-gray-medium);
  max-width: 24rem;
  margin: 0 auto;
}

/* Active nav link styling */
.nav-link.active,
.mobile-nav-link.active {
  color: var(--color-black);
  font-weight: 600;
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-black);
}

/* Responsive Design */
@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-options {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .filter-group,
  .sort-group {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .filter-buttons {
    flex-wrap: nowrap;
  }
}

@media (min-width: 768px) {
  .products-section {
    padding-top: 8rem;
  }

  .page-title {
    font-size: 3rem;
  }

  .filter-sort-section {
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-description {
    font-size: 1.25rem;
  }

  .filter-options {
    justify-content: space-between;
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Stagger animation for product cards */
.product-item:nth-child(1) {
  animation-delay: 0.1s;
}
.product-item:nth-child(2) {
  animation-delay: 0.2s;
}
.product-item:nth-child(3) {
  animation-delay: 0.3s;
}
.product-item:nth-child(4) {
  animation-delay: 0.4s;
}
.product-item:nth-child(5) {
  animation-delay: 0.5s;
}
.product-item:nth-child(6) {
  animation-delay: 0.6s;
}
.product-item:nth-child(7) {
  animation-delay: 0.7s;
}
.product-item:nth-child(8) {
  animation-delay: 0.8s;
}
.product-item:nth-child(9) {
  animation-delay: 0.9s;
}

/* Focus styles for accessibility */
.filter-btn:focus,
.product-item-btn:focus,
.sort-select:focus {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

/* Smooth transitions */
* {
  scroll-behavior: smooth;
}
