/* Shop Page Styles - Premium Aesthetic */

:root {
  /* Brand Color Palette */
  --color-primary-red: rgb(244, 50, 69);
  --color-primary-red-light: rgb(255, 52, 71);
  --color-purple-dark: rgb(40, 35, 89);
  --color-charcoal: #2B2B2B;
  --color-off-white: #FAF8F5;
  --color-light-gray: #F5F5F5;
  --color-text-dark: #1A1A1A;
  --color-text-medium: #6B6B6B;
  --color-white: #FFFFFF;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

/* Shop Hero Section */
.shop-hero {
  background: linear-gradient(135deg, var(--color-light-gray) 0%, var(--color-off-white) 100%);
  padding: 8rem 2rem 4rem;
  text-align: center;
  /* margin-top: 60px; */
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--color-primary-red);
  opacity: 0.1;
  border-radius: 50%;
}

.shop-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: var(--color-purple-dark);
  opacity: 0.08;
  border-radius: 50%;
}

.shop-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.shop-hero h1 {
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.shop-hero p {
  font-size: 1.25rem;
  color: var(--color-text-medium);
  font-weight: 300;
  line-height: 1.6;
}

/* Filter Bar */
.filter-bar {
  background: var(--color-off-white);
  padding: 2rem;
  border-bottom: 1px solid #E0E0E0;
  /* position: sticky; */
  top: 60px;
  /* z-index: 10; */
  backdrop-filter: blur(10px);
  background: rgba(250, 248, 245, 0.95);
}

.filter-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1.5px solid #E0E0E0;
  color: var(--color-text-medium);
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  background: var(--color-primary-red);
  border-color: var(--color-primary-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  background: var(--color-purple-dark);
  border-color: var(--color-purple-dark);
  color: white;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 1.5px solid #E0E0E0;
  min-width: 250px;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: var(--color-primary-red);
  box-shadow: 0 4px 16px rgba(244, 50, 69, 0.15);
}

.search-box i {
  color: var(--color-text-medium);
  font-size: 0.95rem;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.search-box input::placeholder {
  color: var(--color-text-medium);
}

/* Products Section */
.products-section {
  padding: var(--spacing-lg) 2rem;
  background: var(--color-off-white);
  min-height: 60vh;
}

.products-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Product Card */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.product-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  /* 1:1 Aspect Ratio */
  overflow: hidden;
  background: var(--color-light-gray);
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(43, 43, 43, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.view-details {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: 2px solid white;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.product-card:hover .view-details {
  background: white;
  color: var(--color-charcoal);
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.product-category {
  font-size: 0.875rem;
  color: var(--color-text-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-red);
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #3a3a3a 100%);
  padding: var(--spacing-xl) 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244, 50, 69, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-content .btn {
  background: linear-gradient(45deg, var(--color-primary-red) 0%, var(--color-primary-red-light) 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(244, 50, 69, 0.3);
}

.cta-content .btn:hover {
  background: linear-gradient(45deg, var(--color-primary-red-light) 0%, var(--color-primary-red) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(244, 50, 69, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .shop-hero {
    padding: 6rem 1.5rem 3rem;
  }

  .shop-hero h1 {
    font-size: 2rem;
  }

  .shop-hero p {
    font-size: 1rem;
  }

  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    justify-content: center;
  }

  .search-box {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .cta-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .filter-btn {
    flex: 1;
    text-align: center;
  }
}

/* Filter Animation */
.product-card.hidden {
  display: none;
}

.product-card.show {
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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