/* ===== Shop Page CSS ===== */
/* Shop page ke liye styles */

/* ===== Page Hero ===== */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0;
}

.page-hero-sub {
  color: var(--white70);
  font-size: 0.95rem;
}

/* ===== Shop Section ===== */
.shop-section {
  padding: 0 0 100px;
}

/* ===== Filters ===== */
.shop-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white70);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--white);
  background: var(--white10);
}

.filter-tab.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.shop-sort select {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
}

.shop-sort select:hover {
  background: var(--white10);
}

.shop-sort select option {
  background: var(--dark2);
  color: var(--white);
}

/* ===== Shop Meta ===== */
.shop-meta {
  margin-bottom: 28px;
}

.shop-meta span {
  font-size: 0.82rem;
  color: var(--white70);
}

/* ===== Product Image (real photo) ===== */
.product-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--dark2);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

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

/* ===== Shop Grid ===== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== Product Card (reuse from index.css via JS class) ===== */
.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: var(--white20);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--white);
  color: var(--black);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 1;
}

.product-emoji {
  font-size: 4rem;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white05);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.product-card:hover .product-emoji {
  transform: scale(1.1);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-rating {
  font-size: 0.78rem;
  color: var(--white70);
  letter-spacing: 2px;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--white70);
  line-height: 1.6;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 800;
}

.add-to-cart-btn {
  flex-shrink: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 100px 0 36px;
  }

  .shop-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  /* 2-column grid on tablet */
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Vertical card with controlled image height */
  .product-card {
    flex-direction: column;
  }

  .product-img-wrap {
    width: 100%;
    height: 160px;
    aspect-ratio: unset;
    border-bottom: 1px solid var(--glass-border);
    border-right: none;
  }

  .product-emoji {
    width: 100%;
    height: 100px;
    font-size: 2.8rem;
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    border-right: none;
  }

  .product-info {
    padding: 14px;
    gap: 5px;
  }

  .product-name {
    font-size: 0.85rem;
  }

  .product-desc {
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 4px;
  }

  .add-to-cart-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.78rem;
    padding: 10px 14px;
  }
}

@media (max-width: 480px) {
  /* Single column horizontal card on small phones */
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 110px;
  }

  .product-img-wrap {
    width: 100px;
    min-width: 100px;
    height: auto;
    aspect-ratio: unset;
    border-bottom: none;
    border-right: 1px solid var(--glass-border);
    flex-shrink: 0;
  }

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

  .product-emoji {
    width: 100px;
    min-width: 100px;
    height: auto;
    font-size: 2.2rem;
    padding: 14px 10px;
    border-bottom: none;
    border-right: 1px solid var(--glass-border);
    flex-shrink: 0;
  }

  .product-info {
    padding: 12px;
    gap: 4px;
  }

  .product-name {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .product-desc {
    font-size: 0.72rem;
    -webkit-line-clamp: 2;
  }

  .product-rating {
    font-size: 0.7rem;
  }

  .product-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 4px;
  }

  .product-price {
    font-size: 0.88rem;
    flex-shrink: 0;
  }

  .add-to-cart-btn {
    width: auto;
    flex-shrink: 0;
    padding: 8px 10px;
    font-size: 0.7rem;
  }
}
