/* ==========================================================================
   Shop / Product Catalog Page
   ========================================================================== */

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

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}

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

.product-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: var(--bg-secondary);
  padding: var(--spacing-lg);
}

.product-card-image img {
  max-height: 160px;
  object-fit: contain;
}

.product-card-body {
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-category {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-blue);
  margin-bottom: 4px;
}

.product-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.product-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.product-card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.product-card-price .original {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-tertiary);
  text-decoration: line-through;
  margin-left: 6px;
}

/* ---- Category Filters ---- */
.shop-categories {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  overflow-x: auto;
  padding-bottom: 2px;
}

.shop-categories::-webkit-scrollbar {
  display: none;
}

/* ---- Product Detail Sidebar / Modal ---- */
.product-detail-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.product-spec-row:last-child {
  border-bottom: none;
}

.product-spec-label {
  color: var(--text-secondary);
}

.product-spec-value {
  font-weight: 500;
  color: var(--text-primary);
}

/* ---- Quantity Selector ---- */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quantity-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  transition: background-color var(--transition);
}

.quantity-btn:hover {
  background: var(--bg-tertiary);
}

.quantity-value {
  width: 48px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: var(--card-bg);
}
