/* ================================
   Shop Page Styles
   ================================ */

/* Shop Page Container */
.shop-page {
  padding: 3rem 0;
  background: var(--color-bg-alt, #faf8f3);
  min-height: 60vh;
}

/* Shop Header */
.shop-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.shop-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.shop-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.shop-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Affiliate Disclosure Banner */
.affiliate-disclosure {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.affiliate-disclosure .material-icons {
  font-size: 1rem;
  color: var(--color-accent);
}

.affiliate-disclosure a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Shop Filters */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.shop-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-filter-btn .material-icons {
  font-size: 1.1rem;
}

.shop-filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.shop-filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

/* Shop Sections */
.shop-section {
  margin-bottom: 4rem;
}

.shop-section__header {
  margin-bottom: 2rem;
}

.shop-section__header h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.shop-section__header h2 .material-icons {
  color: var(--color-accent);
}

.shop-section__header p {
  color: var(--color-text-muted);
  max-width: 600px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.products-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Product Card */
.product-card {
  background: var(--color-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-card--featured {
  border: 2px solid var(--color-accent);
}

.product-card--compact {
  flex-direction: row;
}

/* Product Image */
.product-card__image {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-alt, #f5f5f5);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-text-muted);
}

.product-image-placeholder .material-icons {
  font-size: 3rem;
  opacity: 0.3;
}

/* Product Badge */
.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  background: var(--color-accent);
  color: white;
}

.product-badge--best-seller {
  background: #f59e0b;
}

.product-badge--my-pick {
  background: #ec4899;
}

.product-badge--sale {
  background: #ef4444;
}

.product-badge--new {
  background: #22c55e;
}

/* Product Content */
.product-card__content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.product-card__title a {
  color: var(--color-text);
  text-decoration: none;
}

.product-card__title a:hover {
  color: var(--color-accent);
}

.product-card__description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex: 1;
}

/* Product Rating */
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.product-card__rating .material-icons {
  font-size: 1rem;
}

.product-card__rating .star-filled {
  color: #fbbf24;
}

.product-card__rating .star-empty {
  color: #d1d5db;
}

.product-card__rating .rating-count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-left: 0.25rem;
}

/* Product Footer */
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.product-card__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.product-card__original-price {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.product-card__btn:hover {
  background: var(--color-accent-dark, #333);
  transform: translateX(2px);
}

.product-card__btn .material-icons {
  font-size: 1rem;
}

/* Affiliate Note */
.product-card__affiliate-note {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

.product-card__affiliate-note .material-icons {
  font-size: 0.85rem;
}

/* Empty State */
.shop-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--color-bg);
  border-radius: 16px;
}

.shop-empty .material-icons {
  font-size: 4rem;
  color: var(--color-text-muted);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.shop-empty h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.shop-empty p {
  color: var(--color-text-muted);
}

/* Bottom Disclosure */
.shop-bottom-disclosure {
  max-width: 700px;
  margin: 4rem auto 0;
  padding: 2rem;
  background: var(--color-bg);
  border-radius: 16px;
  text-align: center;
}

.shop-bottom-disclosure h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.shop-bottom-disclosure p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Homepage Shop Section */
.shop-preview {
  padding: 4rem 0;
  background: var(--color-bg-alt, #faf8f3);
}

.shop-preview .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.shop-preview .products-grid {
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.shop-preview .view-all-link {
  display: flex;
  justify-content: center;
}

.shop-preview .view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-accent);
  border-radius: 50px;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.shop-preview .view-all-btn:hover {
  background: var(--color-accent);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .shop-title {
    font-size: 1.75rem;
  }

  .shop-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .shop-filter-btn {
    flex-shrink: 0;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }

  .product-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-card__btn {
    width: 100%;
    justify-content: center;
  }
}
