/* Shop Page Specific Styles */

.shop-hero {
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-color: var(--color-bg-surface);
  overflow: hidden;
  position: relative;
}

.shop-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.shop-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero-content {
  background-color: rgba(255, 255, 255, 0.95);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  position: relative;
}

.hero-content h1 {
  margin-bottom: var(--space-4);
}

/* Shop Layout */
.shop-layout {
  display: grid;
  gap: var(--space-8);
}

.shop-products {
  width: 100%;
}

.section-categories {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.category-text h2 {
  margin-bottom: var(--space-4);
}

.category-image {
  width: 100%;
}

.category-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.section-filter {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.filter-intro h3 {
  margin-bottom: var(--space-2);
}

.filter-controls {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-wrapper input {
  width: 100%;
}

/* Sidebar Styles */
.shop-sidebar {
  display: none;
  background: #fff;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.shop-sidebar.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  overflow-y: auto;
  padding-top: var(--space-8);
}

.filter-group {
  margin-bottom: var(--space-6);
}

.filter-group h4 {
  margin-bottom: var(--space-4);
  font-size: var(--font-size-lg);
  color: var(--color-text-main);
}

.filter-list {
  list-style: none;
  padding-left: 0;
}

.filter-list li {
  margin-bottom: var(--space-3);
}

.filter-list label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  color: var(--color-text-main);
  font-size: var(--font-size-base);
}

.filter-list input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.filter-group input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  border: 1px solid var(--color-border);
  outline: none;
  -webkit-appearance: none;
}

.filter-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
}

.filter-group input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: none;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-header h2 {
  margin-bottom: var(--space-3);
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.feature-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-8);
}

.feature-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Product Cards */
.card {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

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

.card-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background-color: var(--color-bg-surface);
  display: block;
  aspect-ratio: 1 / 1;
}

.card-body {
  padding: var(--space-5);
}

.card-body h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

.card-body p {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-2);
}

.card-body .price {
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  font-weight: 600;
}

/* Curated Collection Banner */
.curated-banner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-12);
  margin-bottom: var(--space-12);
  align-items: center;
}

.curated-banner img {
  border-radius: var(--radius-lg);
  max-width: 100%;
  height: auto;
  box-shadow: var(--shadow-md);
}

.curated-banner h3 {
  margin-bottom: var(--space-3);
}

.curated-banner p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

/* Best Sellers */
.best-sellers {
  margin-bottom: var(--space-10);
}

.best-seller-feature {
  width: 100%;
}

.best-seller-feature img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.product-list .card {
  margin: 0;
}

.product-list .card-body {
  padding: var(--space-4);
  text-align: center;
}

.product-list .card-body h4 {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-base);
}

.product-list .price {
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-3);
  display: block;
}

/* Newsletter Section */
.newsletter-section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.newsletter-section h2 {
  margin-bottom: var(--space-4);
}

.newsletter-section p {
  margin-bottom: var(--space-6);
  color: var(--color-text-muted);
}

.newsletter-section form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.newsletter-section form input {
  min-width: 200px;
  flex: 1;
}

.newsletter-section form button {
  white-space: nowrap;
}

/* Responsive Design */
@media (min-width: 768px) {
  .shop-layout {
    grid-template-columns: 250px 1fr;
  }
  
  .shop-sidebar {
    display: block !important;
    position: sticky;
    top: 2rem;
    height: fit-content;
  }

  .curated-banner {
    flex-wrap: nowrap;
  }

  .curated-banner > *:first-child {
    flex: 1;
    min-width: 0;
  }

  .curated-banner > *:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .feature-banner {
    margin-bottom: var(--space-6);
  }

  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-categories .grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .newsletter-section form input {
    flex: 0 1 auto;
    max-width: 350px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}