/* ===== catalog.css — Categories, Products, Cards ===== */

.categories { padding: 100px 0; background: var(--bg-white); }
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }



.category-card { background: var(--bg-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(194,24,122,.06); transition: var(--transition); cursor: pointer; }
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(194,24,122,.15); }
.category-image { background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-light) 100%); display: flex; align-items: center; justify-content: center; font-size: 64px; overflow: hidden; aspect-ratio: 3 / 2; width: 100%; }
.category-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.category-image .category-video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Category video upload in admin */
.category-video-upload { min-height: 100px; max-height: 150px; }
.category-video-upload video.upload-preview { max-height: 140px; width: 100%; object-fit: cover; border-radius: 8px; }
.category-info { padding: 24px; }
.category-info h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.category-info p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; line-height: 1.5; }

.featured { padding: 100px 0; background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }




.product-card { background: var(--bg-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(194,24,122,.06); transition: var(--transition); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-image { background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-light) 100%); display: flex; align-items: center; justify-content: center; position: relative; font-size: 48px; overflow: hidden; aspect-ratio: 3 / 2; width: 100%; }
.product-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; border-radius: var(--radius-sm); }
.product-info { padding: 20px; }
.product-category { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-light); margin-bottom: 6px; }
.product-name { font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.product-price { font-size: 16px; font-weight: 700; color: var(--primary); }

.category-image-upload-row { margin-top: 10px; }
.category-image-upload {
  min-height: 100px;
  max-height: 150px;
}
.category-image-upload .upload-preview {
  max-height: 140px;
  width: 100%;
  object-fit: cover;
}

.hidden { display: none !important; }

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

.product-card .btn-add {
  flex: 1;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.product-card .btn-add:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.product-card .btn-add:active {
  transform: scale(0.98);
}

/* Quick add button (icon only) */
.btn-quick {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-quick:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.product-detail-modal .modal {
  max-width: 560px;
}

.product-detail-image {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

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

.product-detail-image .fallback-icon {
  font-size: 80px;
}

.product-detail-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.product-detail-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.product-detail-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-detail-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
  margin-bottom: 20px;
}

/* Quantity selector */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--gray-medium);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--secondary);
  color: var(--primary);
}

.qty-btn:active {
  background: var(--primary);
  color: #fff;
}

.qty-value {
  width: 48px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  border-left: 1px solid var(--gray-medium);
  border-right: 1px solid var(--gray-medium);
}

.product-detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.product-card {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.product-card .btn-add {
  position: relative;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.product-card:active,
.product-card:focus {
  transform: none !important;
  box-shadow: var(--shadow-sm) !important;
}
.product-card .btn-add:active {
  transform: scale(0.97);
}