/* ============================================================
   PAPA PV — Shop / Boutique Pages
   ============================================================ */

/* Shop Hero */
.shop-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  padding: var(--sp-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.shop-hero-content {
  position: relative;
  z-index: 1;
}

.shop-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-4);
  line-height: 1.2;
}

.shop-hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--lh-relaxed);
}

/* Shop Layout */
.shop-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--sp-8);
  padding: var(--sp-12) 0;
}

/* Sidebar Categories */
.shop-sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + var(--sp-4));
  height: fit-content;
}

.shop-sidebar h3 {
  font-size: var(--text-h4);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-4);
  color: var(--color-text);
}

.shop-categories {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.shop-categories a {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  font-size: var(--text-small);
  color: var(--gray-600);
  text-decoration: none;
  transition: all var(--t-fast);
  border-left: 3px solid transparent;
}

.shop-categories a:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-left-color: var(--color-primary);
}

.shop-categories a.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-left-color: var(--color-primary);
  font-weight: var(--fw-semibold);
}

/* Shop Main Content */
.shop-main {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

/* Shop Header */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.shop-header h2 {
  font-size: var(--text-h2);
  color: var(--color-text);
  margin: 0;
}

.shop-sort {
  min-width: 200px;
}

.shop-sort select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-body);
}

.shop-sort select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Products Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-6);
}

/* Enhanced Product Card */
.card-product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-normal);
  cursor: pointer;
  position: relative;
}

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

.card-product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--gray-200);
}

.card-product .badge {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 10;
}

.product-info {
  padding: var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.product-name {
  font-size: var(--text-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.product-name a:hover {
  color: var(--color-primary);
}

.product-description {
  font-size: var(--text-small);
  color: var(--gray-600);
  line-height: var(--lh-relaxed);
  flex: 1;
}

.product-pricing {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  flex-wrap: wrap;
}

.product-price {
  font-size: var(--text-h4);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

.product-price-old {
  text-decoration: line-through;
  color: var(--gray-400);
  font-size: var(--text-small);
}

.product-stock {
  font-size: var(--text-small);
  color: var(--gray-500);
}

.product-stock.in-stock {
  color: var(--color-accent);
  font-weight: var(--fw-semibold);
}

.product-stock.out-of-stock {
  color: var(--color-danger);
}

.product-actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: auto;
}

.product-actions button {
  flex: 1;
}

/* Empty State */
.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-16) var(--sp-8);
}

.shop-empty-icon {
  font-size: 3rem;
  color: var(--gray-300);
  margin-bottom: var(--sp-4);
}

.shop-empty h3 {
  color: var(--gray-600);
  margin-bottom: var(--sp-2);
  font-size: var(--text-h3);
}

.shop-empty p {
  color: var(--gray-500);
  font-size: var(--text-body);
}

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

  .shop-container {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .shop-sidebar {
    position: static;
  }

  .shop-sidebar h3 {
    display: none;
  }

  .shop-categories {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-2);
  }

  .shop-categories a {
    flex: 1;
    min-width: 150px;
  }
}

@media (max-width: 768px) {
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--sp-4);
  }

  .shop-header {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-sort {
    min-width: auto;
  }

  .card-product img {
    height: 180px;
  }

  .product-info {
    padding: var(--sp-3);
  }
}
