/* ============================================================
   PAPA PV — Boutique & Produits
   ============================================================ */

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

.shop-hero-content h1 {
  font-size: var(--text-h1);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-3);
}

.shop-hero-content p {
  font-size: var(--text-h4);
  opacity: 0.9;
}

/* Shop Layout */
.shop-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + var(--sp-6));
}

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

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

.shop-categories a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  color: var(--gray-700);
  text-decoration: none;
  font-weight: var(--fw-medium);
  transition: all var(--t-fast);
}

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

.shop-categories a.active {
  background: var(--color-primary);
  color: var(--color-white);
}

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

.shop-header h2 {
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

.shop-sort select {
  padding: var(--sp-2) var(--sp-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text);
  background: var(--color-white);
  cursor: pointer;
  min-width: 200px;
}

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

/* Product Card */
.card-product {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform var(--t-normal), box-shadow var(--t-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

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

.product-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-product .product-info {
  padding: var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.product-name {
  font-size: var(--text-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  margin-bottom: var(--sp-2);
  line-height: var(--lh-snug);
}

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

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

.product-description {
  font-size: var(--text-small);
  color: var(--gray-600);
  margin-bottom: var(--sp-3);
  line-height: var(--lh-normal);
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  margin-top: auto;
}

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

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

.product-stock {
  font-size: var(--text-small);
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-3);
}

.product-stock.in-stock {
  color: var(--color-accent-dark);
}

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

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

.product-actions .btn {
  flex: 1;
  min-width: 0;
}

/* WhatsApp Button */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: #25D366;
  color: var(--color-white);
  border: 2px solid #25D366;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: var(--fw-semibold);
  padding: 0.625rem var(--sp-5);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  transform: scale(1.02);
}

.btn-whatsapp:active {
  transform: scale(0.98);
}

.btn-whatsapp-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  background: transparent;
  color: #25D366;
  border: 2px solid #25D366;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  padding: 0.375rem var(--sp-3);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.btn-whatsapp-outline:hover {
  background: #25D366;
  color: var(--color-white);
}

/* Shop Empty State */
.shop-empty {
  text-align: center;
  padding: var(--sp-12) var(--sp-6);
}

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

/* Product Detail Page */
.product-detail {
  padding: var(--sp-8) 0;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  font-size: var(--text-small);
  color: var(--gray-500);
}

.product-breadcrumb a {
  color: var(--color-secondary);
  text-decoration: none;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}

.product-images {
  position: sticky;
  top: calc(var(--topbar-h) + var(--sp-6));
}

.product-main-image {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-4);
}

.product-main-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.product-thumbnails {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
}

.product-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--t-fast);
}

.product-thumbnail:hover {
  border-color: var(--color-secondary);
}

.product-title {
  font-size: var(--text-h1);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: var(--sp-4);
  line-height: var(--lh-tight);
}

.product-description {
  font-size: var(--text-body);
  color: var(--gray-700);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
}

.product-specs {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.product-specs h4 {
  font-size: var(--text-h4);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-3);
  color: var(--color-primary);
}

.product-specs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-specs li {
  padding: var(--sp-1) 0;
  color: var(--gray-700);
  font-size: var(--text-body);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  max-width: 160px;
}

.quantity-control .form-input {
  text-align: center;
  width: 60px;
  padding: var(--sp-2);
}

.product-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}

.product-actions .btn {
  flex: 1;
  min-width: 140px;
}

.product-info-footer {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--gray-200);
}

.product-info-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-small);
  color: var(--gray-600);
}

/* Recommended Products */
.recommended-section {
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--gray-200);
}

.recommended-title {
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: var(--sp-6);
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-5);
}

/* Responsive */
@media (max-width: 1024px) {
  .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;
  }

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

  .product-images {
    position: static;
  }

  .product-title {
    font-size: var(--text-h2);
  }
}

@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);
  }

  .product-actions .btn {
    flex: 1 1 100%;
  }

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