/* =============================================================
   DASTARKHAN DELIGHTS — Shop Page Styles
   ============================================================= */

.shop-hero {
  background: var(--saffron-pale);
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../icons/texture-jali.svg');
  background-repeat: repeat;
  opacity: 0.05;
}
.shop-hero h1 {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  margin-bottom: var(--space-md);
}
.shop-hero p {
  margin: 0 auto;
  font-size: var(--text-lg);
  color: var(--muted);
}

.shop-search-wrap {
  max-width: 560px;
  margin: var(--space-xl) auto 0;
  position: relative;
}

.shop-main {
  padding: var(--space-3xl) 0 var(--space-4xl);
}

/* Filter mobile button */
.shop-filter-btn {
  display: none;
}

/* Load More */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-3xl);
}

/* Sort dropdown */
.sort-select {
  padding: 8px 36px 8px 14px;
  border: 1.5px solid #D4C9B4;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--charcoal);
  background: var(--warm-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7060' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  appearance: none;
  cursor: pointer;
}
.sort-select:focus { border-color: var(--saffron); outline: none; }

/* List view card */
.product-list-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--space-lg);
  align-items: center;
  background: var(--warm-white);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-base);
}
.product-list-item:hover {
  box-shadow: var(--shadow-card);
  transform: translateX(4px);
}
.product-list-item__img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}
.product-list-item__body { flex: 1; }
.product-list-item__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--forest);
  margin-bottom: var(--space-sm);
}
.product-list-item__desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}
.product-list-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}
.product-list-item__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--saffron);
}

/* Filter drawer (mobile) */
.filter-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--warm-white);
  border-radius: var(--radius-card-lg) var(--radius-card-lg) 0 0;
  z-index: var(--z-modal);
  padding: var(--space-xl);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 -4px 40px rgba(0,0,0,0.15);
}
.filter-drawer--active {
  transform: translateY(0);
}
.filter-drawer__handle {
  width: 40px;
  height: 4px;
  background: #D4C9B4;
  border-radius: var(--radius-pill);
  margin: 0 auto var(--space-xl);
}

/* No results */
.no-results {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  grid-column: 1 / -1;
}
.no-results svg {
  width: 80px;
  height: 80px;
  color: #D4C9B4;
  margin: 0 auto var(--space-lg);
}
.no-results h3 {
  font-size: var(--text-2xl);
  color: var(--forest);
  margin-bottom: var(--space-sm);
}
.no-results p { margin: 0 auto; }

/* Fade transition on filter */
.product-grid--filtering .product-card {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.product-card--visible {
  opacity: 1 !important;
  transform: scale(1) !important;
}

@media (max-width: 768px) {
  .shop-filter-btn { display: flex; }
  .product-list-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }
  .product-list-item__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
